FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
memory_api.h File Reference
+ Include dependency graph for memory_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VL_MEM_API_LOG_Q_LEN(fmt, qlen)
 

Functions

svm_queue_tvl_api_client_index_to_input_queue (u32 index)
 
int vl_mem_api_init (const char *region_name)
 
void vl_mem_api_dead_client_scan (api_main_t *am, vl_shmem_hdr_t *shm, f64 now)
 
int vl_mem_api_handle_msg_main (vlib_main_t *vm, vlib_node_runtime_t *node)
 
int vl_mem_api_handle_msg_private (vlib_main_t *vm, vlib_node_runtime_t *node, u32 reg_index)
 
int vl_mem_api_handle_rpc (vlib_main_t *vm, vlib_node_runtime_t *node)
 
vl_api_registration_tvl_mem_api_client_index_to_registration (u32 handle)
 
void vl_mem_api_enable_disable (vlib_main_t *vm, int yesno)
 
u32 vl_api_memclnt_create_internal (char *, svm_queue_t *)
 
static u32 vl_msg_api_handle_get_epoch (u32 index)
 
static u32 vl_msg_api_handle_get_index (u32 index)
 
static u32 vl_msg_api_handle_from_index_and_epoch (u32 index, u32 epoch)
 
static u8 vl_msg_api_handle_is_valid (u32 handle, u32 restarts)
 

Macro Definition Documentation

◆ VL_MEM_API_LOG_Q_LEN

#define VL_MEM_API_LOG_Q_LEN (   fmt,
  qlen 
)
Value:
do \
{ \
ELOG_TYPE_DECLARE (e) = { \
.format = fmt, \
.format_args = "i4", \
}; \
struct \
{ \
u32 len; \
} * ed; \
ed->len = qlen; \
} \
while (0)

Definition at line 70 of file memory_api.h.

Function Documentation

◆ vl_api_client_index_to_input_queue()

svm_queue_t* vl_api_client_index_to_input_queue ( u32  index)

Definition at line 794 of file memory_api.c.

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

◆ vl_api_memclnt_create_internal()

u32 vl_api_memclnt_create_internal ( char *  ,
svm_queue_t  
)

Definition at line 120 of file memory_api.c.

+ Here is the call graph for this function:

◆ vl_mem_api_client_index_to_registration()

vl_api_registration_t* vl_mem_api_client_index_to_registration ( u32  handle)

Definition at line 765 of file memory_api.c.

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

◆ vl_mem_api_dead_client_scan()

void vl_mem_api_dead_client_scan ( api_main_t am,
vl_shmem_hdr_t shm,
f64  now 
)

Definition at line 576 of file memory_api.c.

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

◆ vl_mem_api_enable_disable()

void vl_mem_api_enable_disable ( vlib_main_t vm,
int  yesno 
)

Definition at line 445 of file vlib_api.c.

+ Here is the call graph for this function:

◆ vl_mem_api_handle_msg_main()

int vl_mem_api_handle_msg_main ( vlib_main_t vm,
vlib_node_runtime_t node 
)

Definition at line 704 of file memory_api.c.

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

◆ vl_mem_api_handle_msg_private()

int vl_mem_api_handle_msg_private ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  reg_index 
)

Definition at line 756 of file memory_api.c.

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

◆ vl_mem_api_handle_rpc()

int vl_mem_api_handle_rpc ( vlib_main_t vm,
vlib_node_runtime_t node 
)

Definition at line 712 of file memory_api.c.

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

◆ vl_mem_api_init()

int vl_mem_api_init ( const char *  region_name)

Definition at line 424 of file memory_api.c.

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

◆ vl_msg_api_handle_from_index_and_epoch()

static u32 vl_msg_api_handle_from_index_and_epoch ( u32  index,
u32  epoch 
)
inlinestatic

Definition at line 54 of file memory_api.h.

+ Here is the caller graph for this function:

◆ vl_msg_api_handle_get_epoch()

static u32 vl_msg_api_handle_get_epoch ( u32  index)
inlinestatic

Definition at line 42 of file memory_api.h.

+ Here is the caller graph for this function:

◆ vl_msg_api_handle_get_index()

static u32 vl_msg_api_handle_get_index ( u32  index)
inlinestatic

Definition at line 48 of file memory_api.h.

+ Here is the caller graph for this function:

◆ vl_msg_api_handle_is_valid()

static u8 vl_msg_api_handle_is_valid ( u32  handle,
u32  restarts 
)
inlinestatic

Definition at line 64 of file memory_api.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
len
u8 len
Definition: ip_types.api:103
vlib_global_main
vlib_global_main_t vlib_global_main
Definition: main.c:1786
fmt
int cJSON_bool fmt
Definition: cJSON.h:160
vlib_global_main_t::elog_main
elog_main_t elog_main
Definition: main.h:300
TRACE_VLIB_MEMORY_QUEUE
#define TRACE_VLIB_MEMORY_QUEUE
Definition: vlib_api.c:41
ELOG_DATA
#define ELOG_DATA(em, f)
Definition: elog.h:484