Changeset 28183 in vbox for trunk/src/VBox/Devices/Network/slirp/bsd
- Timestamp:
- Apr 12, 2010 8:55:12 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59920
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c
r28034 r28183 259 259 #ifndef VBOX 260 260 static void mbuf_init(void *); 261 #endif262 261 static void *mbuf_jumbo_alloc(uma_zone_t, int, u_int8_t *, int); 263 262 static void mbuf_jumbo_free(void *, int, u_int8_t); 263 #endif 264 264 265 265 #ifndef VBOX … … 421 421 } 422 422 423 #ifndef VBOX 423 424 /* 424 425 * UMA backend page allocator for the jumbo frame zones. … … 428 429 */ 429 430 static void * 430 mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) 431 { 432 433 #ifndef VBOX 431 mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int fWait) 432 { 433 434 434 /* Inform UMA that this allocator uses kernel_map/object. */ 435 435 *flags = UMA_SLAB_KERNEL; 436 return (contigmalloc(bytes, M_JUMBOFRAME, wait, (vm_paddr_t)0,436 return (contigmalloc(bytes, M_JUMBOFRAME, fWait, (vm_paddr_t)0, 437 437 ~(vm_paddr_t)0, 1, 0)); 438 #else439 return RTMemAlloc(bytes);440 #endif441 438 } 442 439 … … 448 445 { 449 446 450 #ifndef VBOX451 447 contigfree(mem, size, M_JUMBOFRAME); 452 #else 453 RTMemFree(mem); 454 #endif 455 } 448 } 449 #endif 456 450 457 451 /*
Note:
See TracChangeset
for help on using the changeset viewer.