FD.io VPP  v18.01.2-1-g9b554f3
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

int clib_mem_vm_get_log2_page_size (int fd)
 
clib_error_tclib_mem_vm_ext_alloc (clib_mem_vm_alloc_t *a)
 
u64clib_mem_vm_get_paddr (void *mem, int log2_page_size, int n_pages)
 

Macro Definition Documentation

#define F_ADD_SEALS   (F_LINUX_SPECIFIC_BASE + 9)

Definition at line 39 of file mem.c.

#define F_GET_SEALS   (F_LINUX_SPECIFIC_BASE + 10)

Definition at line 40 of file mem.c.

#define F_LINUX_SPECIFIC_BASE   1024

Definition at line 35 of file mem.c.

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

Definition at line 44 of file mem.c.

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

Definition at line 42 of file mem.c.

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

Definition at line 43 of file mem.c.

#define F_SEAL_WRITE   0x0008 /* prevent writes */

Definition at line 45 of file mem.c.

Function Documentation

clib_error_t* clib_mem_vm_ext_alloc ( clib_mem_vm_alloc_t a)

Definition at line 58 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int clib_mem_vm_get_log2_page_size ( int  fd)

Definition at line 49 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 220 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: