FD.io VPP  v20.01-rc0-847-g4c6b1b6da
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 = ELOG_DATA (&vm->elog_main, e); \
ed->len = qlen; \
} while (0)
unsigned int u32
Definition: types.h:88
#define ELOG_DATA(em, f)
Definition: elog.h:484
u8 len
Definition: ip_types.api:91
vlib_main_t * vm
Definition: buffer.c:323
elog_main_t elog_main
Definition: main.h:193
#define TRACE_VLIB_MEMORY_QUEUE
Definition: vlib_api.c:41

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 796 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:
+ Here is the caller 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 767 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 578 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 432 of file vlib_api.c.

+ Here is the call graph for this function:
+ Here is the caller 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 706 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 758 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 714 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 426 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: