FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
physmem.c File Reference
+ Include dependency graph for physmem.c:

Go to the source code of this file.

Functions

static void * unix_physmem_alloc_aligned (vlib_main_t *vm, vlib_physmem_region_index_t idx, uword n_bytes, uword alignment)
 
static void unix_physmem_free (vlib_main_t *vm, vlib_physmem_region_index_t idx, void *x)
 
static clib_error_tscan_vfio_fd (void *arg, u8 *path_name, u8 *file_name)
 
static clib_error_tunix_physmem_region_iommu_register (vlib_physmem_region_t *pr)
 
static clib_error_tunix_physmem_region_alloc (vlib_main_t *vm, char *name, u32 size, u8 numa_node, u32 flags, vlib_physmem_region_index_t *idx)
 
static void unix_physmem_region_free (vlib_main_t *vm, vlib_physmem_region_index_t idx)
 
clib_error_tunix_physmem_init (vlib_main_t *vm)
 
static clib_error_tshow_physmem (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static int vfio_container_fd = -1
 
static vlib_cli_command_t show_physmem_command
 (constructor) VLIB_CLI_COMMAND (show_physmem_command) More...
 

Function Documentation

static clib_error_t* scan_vfio_fd ( void *  arg,
u8 path_name,
u8 file_name 
)
static

Definition at line 117 of file physmem.c.

+ Here is the caller graph for this function:

static clib_error_t* show_physmem ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 293 of file physmem.c.

static void* unix_physmem_alloc_aligned ( vlib_main_t vm,
vlib_physmem_region_index_t  idx,
uword  n_bytes,
uword  alignment 
)
static

Definition at line 58 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unix_physmem_free ( vlib_main_t vm,
vlib_physmem_region_index_t  idx,
void *  x 
)
static

Definition at line 109 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* unix_physmem_init ( vlib_main_t vm)

Definition at line 276 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* unix_physmem_region_alloc ( vlib_main_t vm,
char *  name,
u32  size,
u8  numa_node,
u32  flags,
vlib_physmem_region_index_t idx 
)
static

Definition at line 167 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unix_physmem_region_free ( vlib_main_t vm,
vlib_physmem_region_index_t  idx 
)
static

Definition at line 263 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* unix_physmem_region_iommu_register ( vlib_physmem_region_t pr)
static

Definition at line 133 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t show_physmem_command
static
Initial value:
= {
.path = "show physmem",
.short_help = "Show physical memory allocation",
.function = show_physmem,
}
static clib_error_t * show_physmem(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: physmem.c:293

(constructor) VLIB_CLI_COMMAND (show_physmem_command)

Definition at line 316 of file physmem.c.

int vfio_container_fd = -1
static

Definition at line 55 of file physmem.c.