Go to the source code of this file.
#define CLIB_MAX_MHEAPS 256 |
Definition at line 49 of file mem.h.
#define clib_mem_alloc_aligned_no_fail |
( |
|
size, |
|
|
|
align |
|
) |
| |
Value: void * _clib_mem_alloc_p; \
if (! _clib_mem_alloc_p)
\ clib_panic (
"failed to allocate %d bytes", _clib_mem_alloc_size); \
_clib_mem_alloc_p; \
})
static void * clib_mem_alloc_aligned(uword size, uword align)
#define clib_panic(format, args...)
Definition at line 121 of file mem.h.
#define clib_mem_alloc_stack |
( |
|
bytes | ) |
__builtin_alloca(bytes) |
static void* clib_mem_alloc |
( |
uword |
size | ) |
|
|
inlinestatic |
static void* clib_mem_alloc_aligned |
( |
uword |
size, |
|
|
uword |
align |
|
) |
| |
|
inlinestatic |
static void* clib_mem_alloc_aligned_at_offset |
( |
uword |
size, |
|
|
uword |
align, |
|
|
uword |
align_offset |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file mem.h.
void clib_mem_exit |
( |
void |
| ) |
|
static void clib_mem_free |
( |
void * |
p | ) |
|
|
inlinestatic |
static void* clib_mem_get_heap |
( |
void |
| ) |
|
|
inlinestatic |
uword clib_mem_get_page_size |
( |
void |
| ) |
|
static void* clib_mem_get_per_cpu_heap |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 55 of file mem.h.
void* clib_mem_init |
( |
void * |
heap, |
|
|
uword |
size |
|
) |
| |
static uword clib_mem_is_heap_object |
( |
void * |
p | ) |
|
|
inlinestatic |
static void* clib_mem_realloc |
( |
void * |
p, |
|
|
uword |
new_size, |
|
|
uword |
old_size |
|
) |
| |
|
inlinestatic |
static void* clib_mem_set_heap |
( |
void * |
heap | ) |
|
|
inlinestatic |
static void* clib_mem_set_per_cpu_heap |
( |
u8 * |
new_heap | ) |
|
|
inlinestatic |
Definition at line 62 of file mem.h.
static uword clib_mem_size |
( |
void * |
p | ) |
|
|
inlinestatic |
void clib_mem_trace |
( |
int |
enable | ) |
|
void clib_mem_validate |
( |
void |
| ) |
|
u8* format_clib_mem_usage |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |