FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
pneum.c File Reference
+ Include dependency graph for pneum.c:

Go to the source code of this file.

Data Structures

struct  pneum_main_t
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 

Functions

static void init (void)
 
static void cleanup (void)
 
void vlib_cli_output (struct vlib_main_t *vm, char *fmt,...)
 
void pneum_free (void *msg)
 
static void pneum_api_handler (void *msg)
 
static void * pneum_rx_thread_fn (void *arg)
 
static void * pneum_timeout_thread_fn (void *arg)
 
void pneum_rx_suspend (void)
 
void pneum_rx_resume (void)
 
static uwordpneum_msg_table_get_hash (void)
 
int pneum_msg_table_size (void)
 
int pneum_connect (char *name, char *chroot_prefix, pneum_callback_t cb, int rx_qlen)
 
int pneum_disconnect (void)
 
static void set_timeout (unsigned short timeout)
 
static void unset_timeout (void)
 
int pneum_read (char **p, int *l, u16 timeout)
 
typedef VL_API_PACKED (struct _vl_api_header{u16 _vl_msg_id;u32 client_index;})
 
int pneum_write (char *p, int l)
 
int pneum_get_msg_index (unsigned char *name)
 
int pneum_msg_table_max_index (void)
 
void pneum_set_error_handler (pneum_error_callback_t cb)
 

Variables

vlib_main_t vlib_global_main
 
vlib_main_t ** vlib_mains
 
pneum_main_t pneum_main
 
pneum_callback_t pneum_callback
 
u16 read_timeout = 0
 
bool rx_is_running = false
 

Macro Definition Documentation

#define vl_endianfun   /* define message structures */

Definition at line 50 of file pneum.c.

#define vl_typedefs   /* define message structures */

Definition at line 46 of file pneum.c.

Function Documentation

static void cleanup ( void  )
static

Definition at line 90 of file pneum.c.

+ Here is the caller graph for this function:

static void init ( void  )
static

Definition at line 76 of file pneum.c.

+ Here is the caller graph for this function:

static void pneum_api_handler ( void *  msg)
static

Definition at line 118 of file pneum.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int pneum_connect ( char *  name,
char *  chroot_prefix,
pneum_callback_t  cb,
int  rx_qlen 
)

Definition at line 260 of file pneum.c.

+ Here is the call graph for this function:

int pneum_disconnect ( void  )

Definition at line 307 of file pneum.c.

+ Here is the call graph for this function:

void pneum_free ( void *  msg)

Definition at line 112 of file pneum.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int pneum_get_msg_index ( unsigned char *  name)

Definition at line 465 of file pneum.c.

+ Here is the call graph for this function:

static uword* pneum_msg_table_get_hash ( void  )
static

Definition at line 246 of file pneum.c.

+ Here is the caller graph for this function:

int pneum_msg_table_max_index ( void  )

Definition at line 471 of file pneum.c.

+ Here is the call graph for this function:

int pneum_msg_table_size ( void  )

Definition at line 253 of file pneum.c.

+ Here is the call graph for this function:

int pneum_read ( char **  p,
int *  l,
u16  timeout 
)

Definition at line 368 of file pneum.c.

+ Here is the call graph for this function:

void pneum_rx_resume ( void  )

Definition at line 233 of file pneum.c.

+ Here is the caller graph for this function:

void pneum_rx_suspend ( void  )

Definition at line 212 of file pneum.c.

+ Here is the call graph for this function:

static void* pneum_rx_thread_fn ( void *  arg)
static

Definition at line 133 of file pneum.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void pneum_set_error_handler ( pneum_error_callback_t  cb)

Definition at line 486 of file pneum.c.

+ Here is the call graph for this function:

static void* pneum_timeout_thread_fn ( void *  arg)
static

Definition at line 179 of file pneum.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int pneum_write ( char *  p,
int  l 
)

Definition at line 441 of file pneum.c.

+ Here is the call graph for this function:

static void set_timeout ( unsigned short  timeout)
static

Definition at line 349 of file pneum.c.

+ Here is the caller graph for this function:

static void unset_timeout ( void  )
static

Definition at line 359 of file pneum.c.

+ Here is the caller graph for this function:

typedef VL_API_PACKED ( struct _vl_api_header{u16 _vl_msg_id;u32 client_index;}  )

Definition at line 429 of file pneum.c.

void vlib_cli_output ( struct vlib_main_t vm,
char *  fmt,
  ... 
)

Definition at line 106 of file pneum.c.

+ Here is the call graph for this function:

Variable Documentation

pneum_callback_t pneum_callback

Definition at line 71 of file pneum.c.

pneum_main_t pneum_main

Definition at line 70 of file pneum.c.

u16 read_timeout = 0

Definition at line 72 of file pneum.c.

bool rx_is_running = false

Definition at line 73 of file pneum.c.

vlib_main_t vlib_global_main

Definition at line 54 of file pneum.c.

vlib_main_t** vlib_mains

Definition at line 55 of file pneum.c.