FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
mheap.h File Reference
+ Include dependency graph for mheap.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mheap_free(v)   (v) = _mheap_free(v)
 

Functions

static void * mheap_get (void *v, uword size, uword *offset_return)
 
void * mheap_alloc (void *memory, uword memory_bytes)
 
void * mheap_alloc_with_flags (void *memory, uword memory_bytes, uword flags)
 
void * mheap_alloc_with_lock (void *memory, uword size, int locked)
 
void mheap_foreach (void *v, uword(*func)(void *arg, void *v, void *elt_data, uword elt_size), void *arg)
 
u8format_mheap (u8 *s, va_list *va)
 
void mheap_validate (void *h)
 
uword mheap_bytes (void *v)
 
void mheap_usage (void *v, clib_mem_usage_t *usage)
 
void mheap_trace (void *v, int enable)
 
int test_mheap_main (unformat_input_t *input)
 

Macro Definition Documentation

#define mheap_free (   v)    (v) = _mheap_free(v)

Definition at line 65 of file mheap.h.

Function Documentation

u8* format_mheap ( u8 s,
va_list *  va 
)

Definition at line 381 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* mheap_alloc ( void *  memory,
uword  memory_bytes 
)

Definition at line 963 of file mheap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* mheap_alloc_with_flags ( void *  memory,
uword  memory_bytes,
uword  flags 
)

Definition at line 885 of file mheap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* mheap_alloc_with_lock ( void *  memory,
uword  size,
int  locked 
)

Definition at line 456 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword mheap_bytes ( void *  v)

Definition at line 1069 of file mheap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mheap_foreach ( void *  v,
uword(*)(void *arg, void *v, void *elt_data, uword elt_size)  func,
void *  arg 
)

Definition at line 1014 of file mheap.c.

+ Here is the call graph for this function:

static void* mheap_get ( void *  v,
uword  size,
uword offset_return 
)
inlinestatic

Definition at line 51 of file mheap.h.

+ Here is the call graph for this function:

void mheap_trace ( void *  v,
int  enable 
)

Definition at line 422 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mheap_usage ( void *  v,
clib_mem_usage_t usage 
)

Definition at line 1111 of file mheap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mheap_validate ( void *  h)

Definition at line 1378 of file mheap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int test_mheap_main ( unformat_input_t input)