VirtualBox

Ignore:
Timestamp:
Apr 12, 2010 8:55:12 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59920
Message:

NAT: excludes BSD functions, which might confuse reader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c

    r28034 r28183  
    259259#ifndef VBOX
    260260static void     mbuf_init(void *);
    261 #endif
    262261static void    *mbuf_jumbo_alloc(uma_zone_t, int, u_int8_t *, int);
    263262static void     mbuf_jumbo_free(void *, int, u_int8_t);
     263#endif
    264264
    265265#ifndef VBOX
     
    421421}
    422422
     423#ifndef VBOX
    423424/*
    424425 * UMA backend page allocator for the jumbo frame zones.
     
    428429 */
    429430static void *
    430 mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
    431 {
    432 
    433 #ifndef VBOX
     431mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int fWait)
     432{
     433
    434434        /* Inform UMA that this allocator uses kernel_map/object. */
    435435        *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,
    437437            ~(vm_paddr_t)0, 1, 0));
    438 #else
    439         return RTMemAlloc(bytes);
    440 #endif
    441438}
    442439
     
    448445{
    449446
    450 #ifndef VBOX
    451447        contigfree(mem, size, M_JUMBOFRAME);
    452 #else
    453         RTMemFree(mem);
    454 #endif
    455 }
     448}
     449#endif
    456450
    457451/*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette