FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
clib_mem_vm_alloc_t Struct Reference

Data Fields

u32 flags
 vm allocation flags:
CLIB_MEM_VM_F_SHARED: request shared memory, file descriptor will be provided on successful allocation. More...
 
char * name
 Name for memory allocation, set by caller. More...
 
uword size
 Allocation size, set by caller. More...
 
int numa_node
 numa node preference. More...
 
void * addr
 Pointer to allocated memory, set on successful allocation. More...
 
int fd
 File descriptor, set on successful allocation if CLIB_MEM_VM_F_SHARED is set. More...
 
int log2_page_size
 
int n_pages
 
uword requested_va
 Request fixed position mapping. More...
 

Detailed Description

Definition at line 377 of file mem.h.

Field Documentation

◆ addr

void* clib_mem_vm_alloc_t::addr

Pointer to allocated memory, set on successful allocation.

Definition at line 399 of file mem.h.

◆ fd

int clib_mem_vm_alloc_t::fd

File descriptor, set on successful allocation if CLIB_MEM_VM_F_SHARED is set.

Definition at line 400 of file mem.h.

◆ flags

u32 clib_mem_vm_alloc_t::flags

vm allocation flags:
CLIB_MEM_VM_F_SHARED: request shared memory, file descriptor will be provided on successful allocation.


CLIB_MEM_VM_F_HUGETLB: request hugepages.
CLIB_MEM_VM_F_NUMA_PREFER: numa_node field contains valid numa node preference.
CLIB_MEM_VM_F_NUMA_FORCE: fail if setting numa policy fails.
CLIB_MEM_VM_F_HUGETLB_PREALLOC: pre-allocate hugepages if number of available pages is not sufficient.
CLIB_MEM_VM_F_LOCKED: request locked memory.

Definition at line 385 of file mem.h.

◆ log2_page_size

int clib_mem_vm_alloc_t::log2_page_size

Definition at line 401 of file mem.h.

◆ n_pages

int clib_mem_vm_alloc_t::n_pages

Definition at line 402 of file mem.h.

◆ name

char* clib_mem_vm_alloc_t::name

Name for memory allocation, set by caller.

Definition at line 396 of file mem.h.

◆ numa_node

int clib_mem_vm_alloc_t::numa_node

numa node preference.

Valid if CLIB_MEM_VM_F_NUMA_PREFER set.

Definition at line 398 of file mem.h.

◆ requested_va

uword clib_mem_vm_alloc_t::requested_va

Request fixed position mapping.

Definition at line 403 of file mem.h.

◆ size

uword clib_mem_vm_alloc_t::size

Allocation size, set by caller.

Definition at line 397 of file mem.h.


The documentation for this struct was generated from the following file: