FD.io VPP  v17.07-30-g839fa73
Vector Packet Processing
api_common.h File Reference
+ Include dependency graph for api_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vl_api_registration_
 
struct  trace_cfg_t
 
struct  vl_api_trace_t
 
struct  vl_api_msg_range_t
 
struct  vl_msg_api_msg_config_t
 
struct  msgbuf_
 
struct  api_main_t
 

Macros

#define VL_API_LITTLE_ENDIAN   0x00
 
#define VL_API_BIG_ENDIAN   0x01
 

Typedefs

typedef struct vl_api_registration_ vl_api_registration_t
 
typedef struct msgbuf_ msgbuf_t
 
typedef clib_error_t *( vl_msg_api_init_function_t) (u32 client_index)
 

Enumerations

enum  vl_registration_type_t {
  REGISTRATION_TYPE_FREE = 0, REGISTRATION_TYPE_SHMEM, REGISTRATION_TYPE_SOCKET_LISTEN, REGISTRATION_TYPE_SOCKET_SERVER,
  REGISTRATION_TYPE_SOCKET_CLIENT
}
 
enum  vl_api_trace_which_t { VL_API_TRACE_TX, VL_API_TRACE_RX }
 

Functions

void vl_msg_api_handler (void *the_msg)
 
void vl_msg_api_handler_no_free (void *the_msg)
 
void vl_msg_api_handler_no_trace_no_free (void *the_msg)
 
void vl_msg_api_trace_only (void *the_msg)
 
void vl_msg_api_cleanup_handler (void *the_msg)
 
void vl_msg_api_replay_handler (void *the_msg)
 
void vl_msg_api_socket_handler (void *the_msg)
 
void vl_msg_api_set_handlers (int msg_id, char *msg_name, void *handler, void *cleanup, void *endian, void *print, int msg_size, int traced)
 
void vl_msg_api_config (vl_msg_api_msg_config_t *)
 
void vl_msg_api_set_cleanup_handler (int msg_id, void *fp)
 
void vl_msg_api_queue_handler (unix_shared_memory_queue_t *q)
 
void vl_msg_api_barrier_sync (void)
 
void vl_msg_api_barrier_release (void)
 
void vl_msg_api_free (void *)
 
void vl_noop_handler (void *mp)
 
void vl_msg_api_increment_missing_client_counter (void)
 
void vl_msg_api_post_mortem_dump (void)
 
void vl_msg_api_post_mortem_dump_enable_disable (int enable)
 
void vl_msg_api_register_pd_handler (void *handler, u16 msg_id_host_byte_order)
 
int vl_msg_api_pd_handler (void *mp, int rv)
 
void vl_msg_api_set_first_available_msg_id (u16 first_avail)
 
u16 vl_msg_api_get_msg_ids (const char *name, int n)
 
u32 vl_api_get_msg_index (u8 *name_and_crc)
 

Variables

api_main_t api_main
 

Macro Definition Documentation

#define VL_API_BIG_ENDIAN   0x01

Definition at line 95 of file api_common.h.

#define VL_API_LITTLE_ENDIAN   0x00

Definition at line 94 of file api_common.h.

Typedef Documentation

typedef struct msgbuf_ msgbuf_t
typedef clib_error_t*( vl_msg_api_init_function_t) (u32 client_index)

Definition at line 160 of file api_common.h.

Enumeration Type Documentation

Enumerator
VL_API_TRACE_TX 
VL_API_TRACE_RX 

Definition at line 88 of file api_common.h.

Enumerator
REGISTRATION_TYPE_FREE 
REGISTRATION_TYPE_SHMEM 
REGISTRATION_TYPE_SOCKET_LISTEN 
REGISTRATION_TYPE_SOCKET_SERVER 
REGISTRATION_TYPE_SOCKET_CLIENT 

Definition at line 27 of file api_common.h.

Function Documentation

u32 vl_api_get_msg_index ( u8 name_and_crc)

Definition at line 577 of file memory_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_barrier_release ( void  )

Definition at line 388 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_barrier_sync ( void  )

Definition at line 383 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_cleanup_handler ( void *  the_msg)

Definition at line 590 of file api_shared.c.

+ Here is the call graph for this function:

void vl_msg_api_config ( vl_msg_api_msg_config_t )

Definition at line 658 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_free ( void *  )

Definition at line 217 of file memory_shared.c.

+ Here is the caller graph for this function:

u16 vl_msg_api_get_msg_ids ( const char *  name,
int  n 
)

Definition at line 837 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_handler ( void *  the_msg)

Definition at line 541 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_handler_no_free ( void *  the_msg)

Definition at line 290 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_handler_no_trace_no_free ( void *  the_msg)

Definition at line 562 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_increment_missing_client_counter ( void  )

Definition at line 44 of file api_shared.c.

+ Here is the caller graph for this function:

int vl_msg_api_pd_handler ( void *  mp,
int  rv 
)

Definition at line 808 of file api_shared.c.

void vl_msg_api_post_mortem_dump ( void  )

Definition at line 759 of file api_shared.c.

void vl_msg_api_post_mortem_dump_enable_disable ( int  enable)

Definition at line 753 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_queue_handler ( unix_shared_memory_queue_t q)

Definition at line 722 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_register_pd_handler ( void *  handler,
u16  msg_id_host_byte_order 
)

Definition at line 794 of file api_shared.c.

void vl_msg_api_replay_handler ( void *  the_msg)

Definition at line 610 of file api_shared.c.

void vl_msg_api_set_cleanup_handler ( int  msg_id,
void *  fp 
)

Definition at line 712 of file api_shared.c.

void vl_msg_api_set_first_available_msg_id ( u16  first_avail)

Definition at line 829 of file api_shared.c.

+ Here is the caller graph for this function:

void vl_msg_api_set_handlers ( int  msg_id,
char *  msg_name,
void *  handler,
void *  cleanup,
void *  endian,
void *  print,
int  msg_size,
int  traced 
)

Definition at line 690 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_socket_handler ( void *  the_msg)

Definition at line 637 of file api_shared.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_trace_only ( void *  the_msg)

Definition at line 579 of file api_shared.c.

+ Here is the call graph for this function:

void vl_noop_handler ( void *  mp)

Definition at line 745 of file api_shared.c.

+ Here is the caller graph for this function:

Variable Documentation

api_main_t api_main

Definition at line 35 of file api_shared.c.