FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
api.h File Reference
+ Include dependency graph for api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VLIB_API_INIT_FUNCTION(x)   VLIB_DECLARE_INIT_FUNCTION(x,api_init)
 
#define vlib_call_api_init_function(vm, x)
 
#define VL_MSG_API_FUNCTION_SYMBOL(x)   _VL_MSG_API_FUNCTION_SYMBOL(x, reaper)
 
#define VLIB_DECLARE_REAPER_FUNCTION(x, tag)
 
#define VL_MSG_API_REAPER_FUNCTION(x)   VLIB_DECLARE_REAPER_FUNCTION(x,reaper)
 
#define vl_msg_api_call_reaper_function(ci)
 

Functions

typedef CLIB_PACKED (struct{u8 endian;u8 wrapped;u32 nitems;}) vl_api_trace_file_header_t
 
int vl_msg_api_trace_save (api_main_t *am, vl_api_trace_which_t which, FILE *fp)
 
static u32 vl_msg_api_get_msg_length_inline (void *msg_arg)
 
int vl_msg_api_rx_trace_enabled (api_main_t *am)
 
int vl_msg_api_tx_trace_enabled (api_main_t *am)
 
void vl_msg_api_trace (api_main_t *am, vl_api_trace_t *tp, void *msg)
 
int vl_msg_api_trace_onoff (api_main_t *am, vl_api_trace_which_t which, int onoff)
 
int vl_msg_api_trace_free (api_main_t *am, vl_api_trace_which_t which)
 
int vl_msg_api_trace_configure (api_main_t *am, vl_api_trace_which_t which, u32 nitems)
 
void vl_msg_api_handler_with_vm_node (api_main_t *am, void *the_msg, vlib_main_t *vm, vlib_node_runtime_t *node)
 
vl_api_trace_tvl_msg_api_trace_get (api_main_t *am, vl_api_trace_which_t which)
 
void vl_msg_api_add_msg_name_crc (api_main_t *am, const char *string, u32 id)
 
u8vlib_node_serialize (vlib_node_main_t *nm, u8 *vector, u32 max_threads, int include_nexts, int include_stats)
 
vlib_node_t ** vlib_node_unserialize (u8 *vector)
 
u32 vl_msg_api_get_msg_length (void *msg_arg)
 

Macro Definition Documentation

#define vl_msg_api_call_reaper_function (   ci)
Value:
({ \
clib_error_t * _error = 0; \
_error = _f (ci); \
})
clib_error_t *( vlib_init_function_t)(struct vlib_main_t *vm)
Definition: init.h:51
#define VLIB_INIT_FUNCTION_SYMBOL(x)
Definition: init.h:85

Definition at line 84 of file api.h.

#define VL_MSG_API_FUNCTION_SYMBOL (   x)    _VL_MSG_API_FUNCTION_SYMBOL(x, reaper)

Definition at line 63 of file api.h.

#define VL_MSG_API_REAPER_FUNCTION (   x)    VLIB_DECLARE_REAPER_FUNCTION(x,reaper)

Definition at line 81 of file api.h.

#define VLIB_API_INIT_FUNCTION (   x)    VLIB_DECLARE_INIT_FUNCTION(x,api_init)

Definition at line 43 of file api.h.

#define vlib_call_api_init_function (   vm,
 
)
Value:
({ \
extern vlib_init_function_t * _VLIB_INIT_FUNCTION_SYMBOL (x,api_init); \
vlib_init_function_t * _f = _VLIB_INIT_FUNCTION_SYMBOL (x,api_init); \
clib_error_t * _error = 0; \
{ \
_error = _f (vm); \
} \
_error; \
})
#define hash_get(h, key)
Definition: hash.h:248
uword * init_functions_called
Definition: main.h:170
vlib_main_t * vm
Definition: buffer.c:283
clib_error_t *( vlib_init_function_t)(struct vlib_main_t *vm)
Definition: init.h:51
#define hash_set1(h, key)
Definition: hash.h:257

Definition at line 46 of file api.h.

#define VLIB_DECLARE_REAPER_FUNCTION (   x,
  tag 
)
Value:
vl_msg_api_init_function_t * _VL_MSG_API_FUNCTION_SYMBOL (x, tag) = x; \
static void __vl_msg_api_add_##tag##_function_##x (void) \
__attribute__((__constructor__)) ; \
\
static void __vl_msg_api_add_##tag##_function_##x (void) \
{ \
api_main_t * am = &api_main; \
static _vl_msg_api_function_list_elt_t _vl_msg_api_function; \
_vl_msg_api_function.next_init_function \
= am->tag##_function_registrations; \
am->tag##_function_registrations = &_vl_msg_api_function; \
_vl_msg_api_function.f = &x; \
}
api_main_t api_main
Definition: api_shared.c:35
clib_error_t *( vl_msg_api_init_function_t)(u32 client_index)
Definition: api_common.h:173

Definition at line 66 of file api.h.

Function Documentation

typedef CLIB_PACKED ( struct{u8 endian;u8 wrapped;u32 nitems;}  )
void vl_msg_api_add_msg_name_crc ( api_main_t am,
const char *  string,
u32  id 
)

Definition at line 901 of file api_shared.c.

+ Here is the caller graph for this function:

u32 vl_msg_api_get_msg_length ( void *  msg_arg)

Definition at line 634 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vl_msg_api_get_msg_length_inline ( void *  msg_arg)
inlinestatic

Definition at line 93 of file api.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_handler_with_vm_node ( api_main_t am,
void *  the_msg,
vlib_main_t vm,
vlib_node_runtime_t node 
)

Definition at line 468 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_msg_api_rx_trace_enabled ( api_main_t am)

Definition at line 51 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_trace ( api_main_t am,
vl_api_trace_t tp,
void *  msg 
)

Definition at line 66 of file api_shared.c.

+ Here is the caller graph for this function:

int vl_msg_api_trace_configure ( api_main_t am,
vl_api_trace_which_t  which,
u32  nitems 
)

Definition at line 322 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_msg_api_trace_free ( api_main_t am,
vl_api_trace_which_t  which 
)

Definition at line 154 of file api_shared.c.

+ Here is the caller graph for this function:

vl_api_trace_t* vl_msg_api_trace_get ( api_main_t am,
vl_api_trace_which_t  which 
)

Definition at line 751 of file api_shared.c.

+ Here is the caller graph for this function:

int vl_msg_api_trace_onoff ( api_main_t am,
vl_api_trace_which_t  which,
int  onoff 
)

Definition at line 112 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_msg_api_trace_save ( api_main_t am,
vl_api_trace_which_t  which,
FILE *  fp 
)

Definition at line 191 of file api_shared.c.

+ Here is the caller graph for this function:

int vl_msg_api_tx_trace_enabled ( api_main_t am)

Definition at line 57 of file api_shared.c.

+ Here is the caller graph for this function:

u8* vlib_node_serialize ( vlib_node_main_t nm,
u8 vector,
u32  max_threads,
int  include_nexts,
int  include_stats 
)

Definition at line 55 of file node_serialize.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vlib_node_t** vlib_node_unserialize ( u8 vector)

Definition at line 212 of file node_serialize.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: