![]() |
FD.io VPP
v19.04.1-1-ge4a0f9f
Vector Packet Processing
|
Include dependency graph for pmalloc.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | clib_pmalloc_chunk_t |
| struct | clib_pmalloc_page_t |
| struct | clib_pmalloc_arena_t |
| struct | clib_pmalloc_main_t |
Macros | |
| #define | PMALLOC_LOG2_BLOCK_SZ CLIB_LOG2_CACHE_LINE_BYTES |
| #define | PMALLOC_BLOCK_SZ (1 << 6) |
| #define | CLIB_PMALLOC_NUMA_LOCAL 0xffffffff |
| #define | CLIB_PMALLOC_ARENA_F_SHARED_MEM (1 << 0) |
| #define | CLIB_PMALLOC_F_NO_PAGEMAP (1 << 0) |
Functions | |
| STATIC_ASSERT_SIZEOF (clib_pmalloc_chunk_t, 16) | |
| int | clib_pmalloc_init (clib_pmalloc_main_t *pm, uword base_addr, uword size) |
| void * | clib_pmalloc_alloc_aligned_on_numa (clib_pmalloc_main_t *pm, uword size, uword align, u32 numa_node) |
| void * | clib_pmalloc_alloc_aligned (clib_pmalloc_main_t *pm, uword size, uword align) |
| void | clib_pmalloc_free (clib_pmalloc_main_t *pm, void *va) |
| void * | clib_pmalloc_create_shared_arena (clib_pmalloc_main_t *pm, char *name, uword size, u32 log2_page_sz, u32 numa_node) |
| void * | clib_pmalloc_alloc_from_arena (clib_pmalloc_main_t *pm, void *arena_va, uword size, uword align) |
| static clib_error_t * | clib_pmalloc_last_error (clib_pmalloc_main_t *pm) |
| static u32 | clib_pmalloc_get_page_index (clib_pmalloc_main_t *pm, void *va) |
| static clib_pmalloc_arena_t * | clib_pmalloc_get_arena (clib_pmalloc_main_t *pm, void *va) |
| static uword | clib_pmalloc_get_pa (clib_pmalloc_main_t *pm, void *va) |
Variables | |
| format_function_t | format_pmalloc |
| format_function_t | format_pmalloc_map |
| #define PMALLOC_LOG2_BLOCK_SZ CLIB_LOG2_CACHE_LINE_BYTES |
| void* clib_pmalloc_alloc_aligned | ( | clib_pmalloc_main_t * | pm, |
| uword | size, | ||
| uword | align | ||
| ) |
| void* clib_pmalloc_alloc_aligned_on_numa | ( | clib_pmalloc_main_t * | pm, |
| uword | size, | ||
| uword | align, | ||
| u32 | numa_node | ||
| ) |
| void* clib_pmalloc_alloc_from_arena | ( | clib_pmalloc_main_t * | pm, |
| void * | arena_va, | ||
| uword | size, | ||
| uword | align | ||
| ) |
| void* clib_pmalloc_create_shared_arena | ( | clib_pmalloc_main_t * | pm, |
| char * | name, | ||
| uword | size, | ||
| u32 | log2_page_sz, | ||
| u32 | numa_node | ||
| ) |
| void clib_pmalloc_free | ( | clib_pmalloc_main_t * | pm, |
| void * | va | ||
| ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| int clib_pmalloc_init | ( | clib_pmalloc_main_t * | pm, |
| uword | base_addr, | ||
| uword | size | ||
| ) |
|
inlinestatic |
| STATIC_ASSERT_SIZEOF | ( | clib_pmalloc_chunk_t | , |
| 16 | |||
| ) |
| format_function_t format_pmalloc |
| format_function_t format_pmalloc_map |