38 #ifndef included_mheap_h 39 #define included_mheap_h 65 #define mheap_free(v) (v) = _mheap_free(v) 66 void *_mheap_free (
void *v);
70 uword elt_size),
void *arg);
vhost_user_memory_t memory
void * mheap_alloc_with_lock(void *memory, uword size, int locked)
static void * mheap_get(void *v, uword size, uword *offset_return)
void * mheap_alloc(void *memory, uword memory_bytes)
void mheap_validate(void *h)
void * mheap_alloc_with_flags(void *memory, uword memory_bytes, uword flags)
void mheap_foreach(void *v, uword(*func)(void *arg, void *v, void *elt_data, uword elt_size), void *arg)
static u32 * elt_data(void *v, heap_elt_t *e)
uword mheap_bytes(void *v)
void * mheap_get_aligned(void *v, uword n_user_data_bytes, uword align, uword align_offset, uword *offset_return)
u8 * format_mheap(u8 *s, va_list *va)
int test_mheap_main(unformat_input_t *input)
void mheap_usage(void *v, clib_mem_usage_t *usage)
void mheap_trace(void *v, int enable)
CLIB vectors are ubiquitous dynamically resized arrays with by user defined "headers".