FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
mem.c File Reference
+ Include dependency graph for mem.c:

Go to the source code of this file.

Macros

#define F_LINUX_SPECIFIC_BASE   1024
 
#define F_ADD_SEALS   (F_LINUX_SPECIFIC_BASE + 9)
 
#define F_GET_SEALS   (F_LINUX_SPECIFIC_BASE + 10)
 
#define F_SEAL_SEAL   0x0001 /* prevent further seals from being set */
 
#define F_SEAL_SHRINK   0x0002 /* prevent file from shrinking */
 
#define F_SEAL_GROW   0x0004 /* prevent file from growing */
 
#define F_SEAL_WRITE   0x0008 /* prevent writes */
 

Functions

uword clib_mem_get_page_size (void)
 
uword clib_mem_get_default_hugepage_size (void)
 
u64 clib_mem_get_fd_page_size (int fd)
 
int clib_mem_get_fd_log2_page_size (int fd)
 
void clib_mem_vm_randomize_va (uword *requested_va, u32 log2_page_size)
 
clib_error_tclib_mem_create_fd (char *name, int *fdp)
 
clib_error_tclib_mem_create_hugetlb_fd (char *name, int *fdp)
 
clib_error_tclib_mem_vm_ext_alloc (clib_mem_vm_alloc_t *a)
 
void clib_mem_vm_ext_free (clib_mem_vm_alloc_t *a)
 
u64clib_mem_vm_get_paddr (void *mem, int log2_page_size, int n_pages)
 
clib_error_tclib_mem_vm_ext_map (clib_mem_vm_map_t *a)
 

Macro Definition Documentation

◆ F_ADD_SEALS

#define F_ADD_SEALS   (F_LINUX_SPECIFIC_BASE + 9)

Definition at line 40 of file mem.c.

◆ F_GET_SEALS

#define F_GET_SEALS   (F_LINUX_SPECIFIC_BASE + 10)

Definition at line 41 of file mem.c.

◆ F_LINUX_SPECIFIC_BASE

#define F_LINUX_SPECIFIC_BASE   1024

Definition at line 36 of file mem.c.

◆ F_SEAL_GROW

#define F_SEAL_GROW   0x0004 /* prevent file from growing */

Definition at line 45 of file mem.c.

◆ F_SEAL_SEAL

#define F_SEAL_SEAL   0x0001 /* prevent further seals from being set */

Definition at line 43 of file mem.c.

◆ F_SEAL_SHRINK

#define F_SEAL_SHRINK   0x0002 /* prevent file from shrinking */

Definition at line 44 of file mem.c.

◆ F_SEAL_WRITE

#define F_SEAL_WRITE   0x0008 /* prevent writes */

Definition at line 46 of file mem.c.

Function Documentation

◆ clib_mem_create_fd()

clib_error_t* clib_mem_create_fd ( char *  name,
int *  fdp 
)

Definition at line 126 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_create_hugetlb_fd()

clib_error_t* clib_mem_create_hugetlb_fd ( char *  name,
int *  fdp 
)

Definition at line 146 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_get_default_hugepage_size()

uword clib_mem_get_default_hugepage_size ( void  )

Definition at line 57 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_get_fd_log2_page_size()

int clib_mem_get_fd_log2_page_size ( int  fd)

Definition at line 100 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_get_fd_page_size()

u64 clib_mem_get_fd_page_size ( int  fd)

Definition at line 91 of file mem.c.

+ Here is the caller graph for this function:

◆ clib_mem_get_page_size()

uword clib_mem_get_page_size ( void  )

Definition at line 51 of file mem.c.

+ Here is the caller graph for this function:

◆ clib_mem_vm_ext_alloc()

clib_error_t* clib_mem_vm_ext_alloc ( clib_mem_vm_alloc_t a)

Definition at line 193 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_vm_ext_free()

void clib_mem_vm_ext_free ( clib_mem_vm_alloc_t a)

Definition at line 336 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_vm_ext_map()

clib_error_t* clib_mem_vm_ext_map ( clib_mem_vm_map_t a)

Definition at line 386 of file mem.c.

+ Here is the caller graph for this function:

◆ clib_mem_vm_get_paddr()

u64* clib_mem_vm_get_paddr ( void *  mem,
int  log2_page_size,
int  n_pages 
)

Definition at line 347 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_vm_randomize_va()

void clib_mem_vm_randomize_va ( uword requested_va,
u32  log2_page_size 
)

Definition at line 106 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: