FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
plugin.c File Reference
+ Include dependency graph for plugin.c:

Go to the source code of this file.

Functions

void * vlib_get_plugin_symbol (char *plugin_name, char *symbol_name)
 
static char * str_array_to_vec (char *array, int len)
 
static int load_one_plugin (plugin_main_t *pm, plugin_info_t *pi, int from_early_init)
 
static u8 ** split_plugin_path (plugin_main_t *pm)
 
static int plugin_name_sort_cmp (void *a1, void *a2)
 
int vlib_load_new_plugins (plugin_main_t *pm, int from_early_init)
 
int vlib_plugin_early_init (vlib_main_t *vm)
 
u8vlib_get_vat_plugin_path (void)
 
u8vlib_get_vat_plugin_name_filter (void)
 
static clib_error_tvlib_plugins_show_cmd_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tconfig_one_plugin (vlib_main_t *vm, char *name, unformat_input_t *input)
 
clib_error_tvlib_plugin_config (vlib_main_t *vm, unformat_input_t *input)
 
static clib_error_tplugins_config (vlib_main_t *vm, unformat_input_t *input)
 

Variables

plugin_main_t vlib_plugin_main
 
char * vlib_plugin_path = ""
 
char * vlib_plugin_app_version = ""
 
static vlib_cli_command_t plugins_show_cmd
 (constructor) VLIB_CLI_COMMAND (plugins_show_cmd) More...
 

Function Documentation

static clib_error_t* config_one_plugin ( vlib_main_t vm,
char *  name,
unformat_input_t input 
)
static

Definition at line 425 of file plugin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int load_one_plugin ( plugin_main_t pm,
plugin_info_t pi,
int  from_early_init 
)
static

Definition at line 64 of file plugin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int plugin_name_sort_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 228 of file plugin.c.

+ Here is the caller graph for this function:

static clib_error_t* plugins_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 559 of file plugin.c.

+ Here is the call graph for this function:

static u8** split_plugin_path ( plugin_main_t pm)
static

Definition at line 201 of file plugin.c.

+ Here is the caller graph for this function:

static char* str_array_to_vec ( char *  array,
int  len 
)
static

Definition at line 45 of file plugin.c.

+ Here is the caller graph for this function:

void* vlib_get_plugin_symbol ( char *  plugin_name,
char *  symbol_name 
)

Definition at line 31 of file plugin.c.

u8* vlib_get_vat_plugin_name_filter ( void  )

Definition at line 377 of file plugin.c.

+ Here is the caller graph for this function:

u8* vlib_get_vat_plugin_path ( void  )

Definition at line 370 of file plugin.c.

+ Here is the caller graph for this function:

int vlib_load_new_plugins ( plugin_main_t pm,
int  from_early_init 
)

Definition at line 237 of file plugin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_plugin_config ( vlib_main_t vm,
unformat_input_t input 
)

Definition at line 481 of file plugin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vlib_plugin_early_init ( vlib_main_t vm)

Definition at line 354 of file plugin.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vlib_plugins_show_cmd_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 384 of file plugin.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t plugins_show_cmd
static
Initial value:
=
{
.path = "show plugins",
.short_help = "show loaded plugins",
}
static clib_error_t * vlib_plugins_show_cmd_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: plugin.c:384

(constructor) VLIB_CLI_COMMAND (plugins_show_cmd)

Definition at line 416 of file plugin.c.

char * vlib_plugin_app_version = ""

Definition at line 27 of file plugin.c.

plugin_main_t vlib_plugin_main

Definition at line 23 of file plugin.c.

char * vlib_plugin_path = ""

Definition at line 25 of file plugin.c.