FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
memory_shared.c File Reference
+ Include dependency graph for memory_shared.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define DEBUG_MESSAGE_BUFFER_OVERRUN   0
 

Functions

static CLIB_NOSANITIZE_ADDR void * vl_msg_api_alloc_internal (svm_region_t *vlib_rp, int nbytes, int pool, int may_return_null)
 
void * vl_msg_api_alloc (int nbytes)
 
void * vl_msg_api_alloc_zero (int nbytes)
 
void * vl_msg_api_alloc_or_null (int nbytes)
 
void * vl_msg_api_alloc_as_if_client (int nbytes)
 
void * vl_msg_api_alloc_zero_as_if_client (int nbytes)
 
void * vl_msg_api_alloc_as_if_client_or_null (int nbytes)
 
void * vl_mem_api_alloc_as_if_client_w_reg (vl_api_registration_t *reg, int nbytes)
 
void vl_msg_api_free_w_region (svm_region_t *vlib_rp, void *a)
 
void vl_msg_api_free (void *a)
 
static void vl_msg_api_free_nolock (void *a)
 
void vl_set_memory_root_path (const char *name)
 
void vl_set_memory_uid (int uid)
 
void vl_set_memory_gid (int gid)
 
void vl_set_global_memory_baseva (u64 baseva)
 
void vl_set_global_memory_size (u64 size)
 
void vl_set_api_memory_size (u64 size)
 
void vl_set_global_pvt_heap_size (u64 size)
 
void vl_set_api_pvt_heap_size (u64 size)
 
static void vl_api_default_mem_config (vl_shmem_hdr_t *shmem_hdr)
 
void vl_api_mem_config (vl_shmem_hdr_t *hdr, vl_api_shm_elem_config_t *config)
 
void vl_init_shmem (svm_region_t *vlib_rp, vl_api_shm_elem_config_t *config, int is_vlib, int is_private_region)
 
int vl_map_shmem (const char *region_name, int is_vlib)
 
void vl_register_mapped_shmem_region (svm_region_t *rp)
 
static void vl_unmap_shmem_internal (u8 is_client)
 
void vl_unmap_shmem (void)
 
void vl_unmap_shmem_client (void)
 
void vl_msg_api_send_shmem (svm_queue_t *q, u8 *elem)
 
int vl_mem_api_can_send (svm_queue_t *q)
 
void vl_msg_api_send_shmem_nolock (svm_queue_t *q, u8 *elem)
 

Macro Definition Documentation

◆ DEBUG_MESSAGE_BUFFER_OVERRUN

#define DEBUG_MESSAGE_BUFFER_OVERRUN   0

Definition at line 44 of file memory_shared.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 40 of file memory_shared.c.

Function Documentation

◆ vl_api_default_mem_config()

static void vl_api_default_mem_config ( vl_shmem_hdr_t shmem_hdr)
static

Definition at line 407 of file memory_shared.c.

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

◆ vl_api_mem_config()

void vl_api_mem_config ( vl_shmem_hdr_t hdr,
vl_api_shm_elem_config_t config 
)

Definition at line 451 of file memory_shared.c.

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

◆ vl_init_shmem()

void vl_init_shmem ( svm_region_t vlib_rp,
vl_api_shm_elem_config_t config,
int  is_vlib,
int  is_private_region 
)

Definition at line 492 of file memory_shared.c.

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

◆ vl_map_shmem()

int vl_map_shmem ( const char *  region_name,
int  is_vlib 
)

Definition at line 534 of file memory_shared.c.

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

◆ vl_mem_api_alloc_as_if_client_w_reg()

void* vl_mem_api_alloc_as_if_client_w_reg ( vl_api_registration_t reg,
int  nbytes 
)

Definition at line 262 of file memory_shared.c.

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

◆ vl_mem_api_can_send()

int vl_mem_api_can_send ( svm_queue_t q)

Definition at line 794 of file memory_shared.c.

+ Here is the caller graph for this function:

◆ vl_msg_api_alloc()

void* vl_msg_api_alloc ( int  nbytes)

Definition at line 199 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_msg_api_alloc_as_if_client()

void* vl_msg_api_alloc_as_if_client ( int  nbytes)

Definition at line 236 of file memory_shared.c.

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

◆ vl_msg_api_alloc_as_if_client_or_null()

void* vl_msg_api_alloc_as_if_client_or_null ( int  nbytes)

Definition at line 254 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_msg_api_alloc_internal()

static CLIB_NOSANITIZE_ADDR void* vl_msg_api_alloc_internal ( svm_region_t vlib_rp,
int  nbytes,
int  pool,
int  may_return_null 
)
inlinestatic

Definition at line 47 of file memory_shared.c.

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

◆ vl_msg_api_alloc_or_null()

void* vl_msg_api_alloc_or_null ( int  nbytes)

Definition at line 224 of file memory_shared.c.

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

◆ vl_msg_api_alloc_zero()

void* vl_msg_api_alloc_zero ( int  nbytes)

Definition at line 214 of file memory_shared.c.

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

◆ vl_msg_api_alloc_zero_as_if_client()

void* vl_msg_api_alloc_zero_as_if_client ( int  nbytes)

Definition at line 244 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_msg_api_free()

void vl_msg_api_free ( void *  a)

Definition at line 311 of file memory_shared.c.

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

◆ vl_msg_api_free_nolock()

static void vl_msg_api_free_nolock ( void *  a)
static

Definition at line 318 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_msg_api_free_w_region()

void vl_msg_api_free_w_region ( svm_region_t vlib_rp,
void *  a 
)

Definition at line 269 of file memory_shared.c.

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

◆ vl_msg_api_send_shmem()

void vl_msg_api_send_shmem ( svm_queue_t q,
u8 elem 
)

Definition at line 753 of file memory_shared.c.

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

◆ vl_msg_api_send_shmem_nolock()

void vl_msg_api_send_shmem_nolock ( svm_queue_t q,
u8 elem 
)

Definition at line 800 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_register_mapped_shmem_region()

void vl_register_mapped_shmem_region ( svm_region_t rp)

Definition at line 706 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_api_memory_size()

void vl_set_api_memory_size ( u64  size)

Definition at line 383 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_api_pvt_heap_size()

void vl_set_api_pvt_heap_size ( u64  size)

Definition at line 399 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_global_memory_baseva()

void vl_set_global_memory_baseva ( u64  baseva)

Definition at line 367 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_global_memory_size()

void vl_set_global_memory_size ( u64  size)

Definition at line 375 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_global_pvt_heap_size()

void vl_set_global_pvt_heap_size ( u64  size)

Definition at line 391 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_memory_gid()

void vl_set_memory_gid ( int  gid)

Definition at line 359 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_set_memory_root_path()

void vl_set_memory_root_path ( const char *  name)

Definition at line 343 of file memory_shared.c.

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

◆ vl_set_memory_uid()

void vl_set_memory_uid ( int  uid)

Definition at line 351 of file memory_shared.c.

+ Here is the call graph for this function:

◆ vl_unmap_shmem()

void vl_unmap_shmem ( void  )

Definition at line 741 of file memory_shared.c.

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

◆ vl_unmap_shmem_client()

void vl_unmap_shmem_client ( void  )

Definition at line 747 of file memory_shared.c.

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

◆ vl_unmap_shmem_internal()

static void vl_unmap_shmem_internal ( u8  is_client)
static

Definition at line 714 of file memory_shared.c.

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