Ignore:
Timestamp:
May 25, 2006, 5:36:31 PM (14 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ebbe2af2
Parents:
4bee7d9c
Message:

Provide customisable mbuf allocation.
Patch from Steven Johnson <sjohnson@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/rtems/rtems_bsdnet.h

    r4bee7d9c rbe31de7  
    261261void rtems_bsdnet_malloc_starvation(void);
    262262
     263/*
     264 * mbuf malloc interface to enable custom allocation of mbuf's
     265 *
     266 * May be declared in user code.  If not, then the default is to
     267 * malloc.
     268 */
     269void* rtems_bsdnet_malloc_mbuf(size_t size, int type);
     270
     271/*
     272 * Possible values of the type parameter to rtems_bsdnet_malloc_mbuf to assist
     273 * in allocation of the structure.
     274 */
     275#define MBUF_MALLOC_NMBCLUSTERS (0)
     276#define MBUF_MALLOC_MCLREFCNT   (1)
     277#define MBUF_MALLOC_MBUF        (2)
     278
    263279#endif /* _RTEMS_BSDNET_H */
Note: See TracChangeset for help on using the changeset viewer.