FD.io VPP  v17.04.2-2-ga8f93f8
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)
 
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 410 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 227 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 531 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 200 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.

int vlib_load_new_plugins ( plugin_main_t pm,
int  from_early_init 
)

Definition at line 236 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 466 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 353 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 369 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:369

(constructor) VLIB_CLI_COMMAND (plugins_show_cmd)

Definition at line 401 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.