FD.io VPP  v18.01-8-g0eacf49
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 void * vl_msg_api_alloc_internal (int nbytes, int pool, int may_return_null)
 
void * vl_msg_api_alloc (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_as_if_client_or_null (int nbytes)
 
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)
 
void vl_init_shmem (svm_region_t *vlib_rp, 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)
 
void vl_unmap_shmem (void)
 
void vl_msg_api_send_shmem (unix_shared_memory_queue_t *q, u8 *elem)
 
void vl_msg_api_send_shmem_nolock (unix_shared_memory_queue_t *q, u8 *elem)
 
u32 vl_api_get_msg_index (u8 *name_and_crc)
 
static vl_api_registration_tvl_api_client_index_to_registration_internal (u32 handle)
 
vl_api_registration_tvl_api_client_index_to_registration (u32 index)
 
unix_shared_memory_queue_tvl_api_client_index_to_input_queue (u32 index)
 

Variables

socket_main_t socket_main
 

Macro Definition Documentation

#define DEBUG_MESSAGE_BUFFER_OVERRUN   0

Definition at line 44 of file memory_shared.c.

#define vl_typedefs

Definition at line 38 of file memory_shared.c.

Function Documentation

unix_shared_memory_queue_t* vl_api_client_index_to_input_queue ( u32  index)

Definition at line 700 of file memory_shared.c.

+ Here is the call graph for this function:

vl_api_registration_t* vl_api_client_index_to_registration ( u32  index)

Definition at line 691 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vl_api_registration_t* vl_api_client_index_to_registration_internal ( u32  handle)
inlinestatic

Definition at line 664 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vl_api_get_msg_index ( u8 name_and_crc)

Definition at line 649 of file memory_shared.c.

+ Here is the caller graph for this function:

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

Definition at line 368 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_map_shmem ( const char *  region_name,
int  is_vlib 
)

Definition at line 445 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* vl_msg_api_alloc ( int  nbytes)

Definition at line 199 of file memory_shared.c.

+ Here is the call graph for this function:

void* vl_msg_api_alloc_as_if_client ( 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:

void* vl_msg_api_alloc_as_if_client_or_null ( int  nbytes)

Definition at line 230 of file memory_shared.c.

+ Here is the call graph for this function:

static void* vl_msg_api_alloc_internal ( 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:

void* vl_msg_api_alloc_or_null ( int  nbytes)

Definition at line 213 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_free ( void *  a)

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:

static void vl_msg_api_free_nolock ( void *  a)
static

Definition at line 280 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_send_shmem ( unix_shared_memory_queue_t q,
u8 elem 
)

Definition at line 625 of file memory_shared.c.

+ Here is the call graph for this function:

void vl_msg_api_send_shmem_nolock ( unix_shared_memory_queue_t q,
u8 elem 
)

Definition at line 637 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_register_mapped_shmem_region ( svm_region_t rp)

Definition at line 591 of file memory_shared.c.

void vl_set_api_memory_size ( u64  size)

Definition at line 344 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_api_pvt_heap_size ( u64  size)

Definition at line 360 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_global_memory_baseva ( u64  baseva)

Definition at line 328 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_global_memory_size ( u64  size)

Definition at line 336 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_global_pvt_heap_size ( u64  size)

Definition at line 352 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_gid ( int  gid)

Definition at line 320 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_root_path ( const char *  name)

Definition at line 304 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_uid ( int  uid)

Definition at line 312 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_unmap_shmem ( void  )

Definition at line 599 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

socket_main_t socket_main

Definition at line 42 of file memory_shared.c.