FD.io VPP  v18.07.1-19-g511ce25
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_vm_get_page_size (int fd)
 
int clib_mem_vm_get_log2_page_size (int fd)
 
void clib_mem_vm_randomize_va (uword *requested_va, u32 log2_page_size)
 
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)
 
clib_error_tclib_mem_vm_ext_map (clib_mem_vm_map_t *a)
 

Macro Definition Documentation

#define F_ADD_SEALS   (F_LINUX_SPECIFIC_BASE + 9)

Definition at line 40 of file mem.c.

#define F_GET_SEALS   (F_LINUX_SPECIFIC_BASE + 10)

Definition at line 41 of file mem.c.

#define F_LINUX_SPECIFIC_BASE   1024

Definition at line 36 of file mem.c.

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

Definition at line 45 of file mem.c.

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

Definition at line 43 of file mem.c.

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

Definition at line 44 of file mem.c.

#define F_SEAL_WRITE   0x0008 /* prevent writes */

Definition at line 46 of file mem.c.

Function Documentation

clib_error_t* clib_mem_vm_ext_alloc ( clib_mem_vm_alloc_t a)

Definition at line 80 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* clib_mem_vm_ext_map ( clib_mem_vm_map_t a)

Definition at line 295 of file mem.c.

+ Here is the caller graph for this function:

int clib_mem_vm_get_log2_page_size ( int  fd)

Definition at line 59 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 256 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword clib_mem_vm_get_page_size ( int  fd)

Definition at line 50 of file mem.c.

+ Here is the caller graph for this function:

void clib_mem_vm_randomize_va ( uword requested_va,
u32  log2_page_size 
)

Definition at line 65 of file mem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: