FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define UNIX_CLI_DEFAULT_PAGER_LIMIT   100000
 Default CLI pager limit is not configured in startup.conf. More...
 
#define UNIX_CLI_DEFAULT_HISTORY   50
 Default CLI history depth if not configured in startup.conf. More...
 

Functions

static clib_error_tunix_main_init (vlib_main_t *vm)
 
static int unsetup_signal_handlers (int sig)
 
static void unix_signal_handler (int signum, siginfo_t *si, ucontext_t *uc)
 
static clib_error_tsetup_signal_handlers (unix_main_t *um)
 
static void unix_error_handler (void *arg, u8 *msg, int msg_len)
 
void vlib_unix_error_report (vlib_main_t *vm, clib_error_t *error)
 
static uword startup_config_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static clib_error_tunix_config (vlib_main_t *vm, unformat_input_t *input)
 
static clib_error_tunix_exit (vlib_main_t *vm)
 
static uword thread0 (uword arg)
 
u8vlib_thread_stack_init (uword thread_index)
 
int vlib_unix_main (int argc, char *argv[])
 

Variables

char * vlib_default_runtime_dir = "vlib"
 
unix_main_t unix_main
 
clib_file_main_t file_main
 
static u8syslog_msg = 0
 
int vlib_last_signum = 0
 
uword vlib_last_faulting_address = 0
 
static vlib_node_registration_t startup_config_node
 (constructor) VLIB_REGISTER_NODE (startup_config_node) More...
 
u8 ** vlib_thread_stacks
 

Macro Definition Documentation

◆ UNIX_CLI_DEFAULT_HISTORY

#define UNIX_CLI_DEFAULT_HISTORY   50

Default CLI history depth if not configured in startup.conf.

Definition at line 57 of file main.c.

◆ UNIX_CLI_DEFAULT_PAGER_LIMIT

#define UNIX_CLI_DEFAULT_PAGER_LIMIT   100000

Default CLI pager limit is not configured in startup.conf.

Definition at line 54 of file main.c.

Function Documentation

◆ setup_signal_handlers()

static clib_error_t* setup_signal_handlers ( unix_main_t um)
static

Definition at line 195 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startup_config_process()

static uword startup_config_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 287 of file main.c.

+ Here is the call graph for this function:

◆ thread0()

static uword thread0 ( uword  arg)
static

Definition at line 662 of file main.c.

+ Here is the call graph for this function:

◆ unix_config()

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

Definition at line 385 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unix_error_handler()

static void unix_error_handler ( void *  arg,
u8 msg,
int  msg_len 
)
static

Definition at line 238 of file main.c.

+ Here is the caller graph for this function:

◆ unix_exit()

static clib_error_t* unix_exit ( vlib_main_t vm)
static

Definition at line 650 of file main.c.

◆ unix_main_init()

static clib_error_t* unix_main_init ( vlib_main_t vm)
static

Definition at line 66 of file main.c.

◆ unix_signal_handler()

static void unix_signal_handler ( int  signum,
siginfo_t *  si,
ucontext_t *  uc 
)
static

Definition at line 100 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unsetup_signal_handlers()

static int unsetup_signal_handlers ( int  sig)
static

Definition at line 81 of file main.c.

+ Here is the caller graph for this function:

◆ vlib_thread_stack_init()

u8* vlib_thread_stack_init ( uword  thread_index)

Definition at line 678 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_unix_error_report()

void vlib_unix_error_report ( vlib_main_t vm,
clib_error_t error 
)

Definition at line 261 of file main.c.

◆ vlib_unix_main()

int vlib_unix_main ( int  argc,
char *  argv[] 
)

Definition at line 694 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ file_main

clib_file_main_t file_main

Definition at line 63 of file main.c.

◆ startup_config_node

vlib_node_registration_t startup_config_node
static
Initial value:
= {
.name = "startup-config-process",
.process_log2_n_stack_bytes = 18,
}

(constructor) VLIB_REGISTER_NODE (startup_config_node)

Definition at line 376 of file main.c.

◆ syslog_msg

u8* syslog_msg = 0
static

Definition at line 95 of file main.c.

◆ unix_main

unix_main_t unix_main

Definition at line 62 of file main.c.

◆ vlib_default_runtime_dir

char * vlib_default_runtime_dir = "vlib"

Definition at line 59 of file main.c.

◆ vlib_last_faulting_address

uword vlib_last_faulting_address = 0

Definition at line 97 of file main.c.

◆ vlib_last_signum

int vlib_last_signum = 0

Definition at line 96 of file main.c.

◆ vlib_thread_stacks

u8** vlib_thread_stacks

Definition at line 659 of file main.c.

startup_config_process
static uword startup_config_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: main.c:287
VLIB_NODE_TYPE_PROCESS
@ VLIB_NODE_TYPE_PROCESS
Definition: node.h:84