4.104.114.84.95
Last change
on this file since be31de7 was
be31de7,
checked in by Eric Norum <WENorum@…>, on 05/25/06 at 17:36:31
|
Provide customisable mbuf allocation.
Patch from Steven Johnson <sjohnson@…>
|
-
Property mode set to
100644
|
File size:
493 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #if HAVE_CONFIG_H |
---|
6 | #include "config.h" |
---|
7 | #endif |
---|
8 | |
---|
9 | #define RTEMS_FAST_MUTEX |
---|
10 | |
---|
11 | #ifdef RTEMS_FAST_MUTEX |
---|
12 | #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1 |
---|
13 | #endif |
---|
14 | |
---|
15 | #include <string.h> |
---|
16 | #include <stdarg.h> |
---|
17 | #include <stdio.h> |
---|
18 | #include <errno.h> |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | #include <rtems/rtems_bsdnet.h> |
---|
22 | |
---|
23 | /* |
---|
24 | * Default allocator for mbuf data. Over-ride in user code to change |
---|
25 | * the way mbuf's are allocated. |
---|
26 | */ |
---|
27 | |
---|
28 | void* rtems_bsdnet_malloc_mbuf(size_t size, int type) |
---|
29 | { |
---|
30 | return malloc(size); |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.