FD.io VPP  v16.06
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 foreach_api_client_msg
 

Functions

static voidvl_msg_api_alloc_internal (int nbytes, int pool)
 
voidvl_msg_api_alloc (int nbytes)
 
voidvl_msg_api_alloc_as_if_client (int nbytes)
 
void vl_msg_api_free (void *a)
 
static void vl_msg_api_free_nolock (void *a)
 
void vl_set_memory_root_path (char *name)
 
void vl_set_memory_uid (int uid)
 
void vl_set_memory_gid (int gid)
 
int vl_map_shmem (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)
 
static void vl_api_memclnt_create_reply_t_handler (vl_api_memclnt_create_reply_t *mp)
 
void vl_client_add_api_signatures (vl_api_memclnt_create_t *mp)
 
int vl_client_connect (char *name, int ctx_quota, int input_queue_size)
 
static void vl_api_memclnt_delete_reply_t_handler (vl_api_memclnt_delete_reply_t *mp)
 
void vl_client_disconnect (void)
 
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)
 
int vl_client_api_map (char *region_name)
 
void vl_client_api_unmap (void)
 

Macro Definition Documentation

#define foreach_api_client_msg
Value:
_(MEMCLNT_CREATE_REPLY, memclnt_create_reply) \
_(MEMCLNT_DELETE_REPLY, memclnt_delete_reply)

Definition at line 659 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 649 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vl_api_registration_t* vl_api_client_index_to_registration ( u32  index)

Definition at line 644 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 620 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_memclnt_create_reply_t_handler ( vl_api_memclnt_create_reply_t mp)
static

Definition at line 436 of file memory_shared.c.

+ Here is the call graph for this function:

static void vl_api_memclnt_delete_reply_t_handler ( vl_api_memclnt_delete_reply_t mp)
static

Definition at line 548 of file memory_shared.c.

+ Here is the call graph for this function:

void vl_client_add_api_signatures ( vl_api_memclnt_create_t mp)

Definition at line 455 of file memory_shared.c.

+ Here is the caller graph for this function:

int vl_client_api_map ( char *  region_name)

Definition at line 663 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_client_api_unmap ( void  )

Definition at line 681 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_client_connect ( char *  name,
int  ctx_quota,
int  input_queue_size 
)

Definition at line 463 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_client_disconnect ( void  )

Definition at line 565 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 ( char *  region_name,
int  is_vlib 
)

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:

void* vl_msg_api_alloc ( int  nbytes)

Definition at line 128 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 ( int  nbytes)

Definition at line 141 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_alloc_internal ( int  nbytes,
int  pool 
)
inlinestatic

Definition at line 42 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 146 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 171 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 414 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_nolock ( unix_shared_memory_queue_t q,
u8 elem 
)

Definition at line 425 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 383 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_gid ( int  gid)

Definition at line 207 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_root_path ( char *  name)

Definition at line 193 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_set_memory_uid ( int  uid)

Definition at line 200 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_unmap_shmem ( void  )

Definition at line 390 of file memory_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: