FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
unix.h File Reference
+ Include dependency graph for unix.h:

Go to the source code of this file.

Data Structures

struct  unix_error_history_t
 
struct  unix_main_t
 

Macros

#define UNIX_FLAG_INTERACTIVE   (1 << 0)
 
#define UNIX_FLAG_NODAEMON   (1 << 1)
 

Functions

static void unix_save_error (unix_main_t *um, clib_error_t *error)
 
int vlib_unix_main (int argc, char *argv[])
 
clib_error_tunix_physmem_init (vlib_main_t *vm)
 
void vlib_unix_cli_set_prompt (char *prompt)
 Set the CLI prompt. More...
 
static unix_main_tvlib_unix_get_main (void)
 
static char * vlib_unix_get_runtime_dir (void)
 
clib_error_tforeach_directory_file (char *dir_name, clib_error_t *(*f)(void *arg, u8 *path_name, u8 *file_name), void *arg, int scan_dirs)
 
clib_error_tvlib_unix_recursive_mkdir (char *path)
 
clib_error_tvlib_unix_validate_runtime_file (unix_main_t *um, const char *path, u8 **full_path)
 

Variables

unix_main_t unix_main
 
clib_file_main_t file_main
 
u8 ** vlib_thread_stacks
 

Macro Definition Documentation

#define UNIX_FLAG_INTERACTIVE   (1 << 0)

Definition at line 60 of file unix.h.

#define UNIX_FLAG_NODAEMON   (1 << 1)

Definition at line 61 of file unix.h.

Function Documentation

clib_error_t* foreach_directory_file ( char *  dir_name,
clib_error_t *(*)(void *arg, u8 *path_name, u8 *file_name)  f,
void *  arg,
int  scan_dirs 
)

Definition at line 49 of file util.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* unix_physmem_init ( vlib_main_t vm)

Definition at line 276 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unix_save_error ( unix_main_t um,
clib_error_t error 
)
inlinestatic

Definition at line 112 of file unix.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_unix_cli_set_prompt ( char *  prompt)

Set the CLI prompt.

Parameters
promptThe C string to set the prompt to.
Note
This setting is global; it impacts all current and future CLI sessions.

Definition at line 2909 of file cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static unix_main_t* vlib_unix_get_main ( void  )
inlinestatic

Definition at line 132 of file unix.h.

static char* vlib_unix_get_runtime_dir ( void  )
inlinestatic

Definition at line 138 of file unix.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 591 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_unix_recursive_mkdir ( char *  path)

Definition at line 102 of file util.c.

+ Here is the caller graph for this function:

clib_error_t* vlib_unix_validate_runtime_file ( unix_main_t um,
const char *  path,
u8 **  full_path 
)

Definition at line 137 of file util.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

clib_file_main_t file_main

Definition at line 63 of file main.c.

unix_main_t unix_main

Definition at line 62 of file main.c.

u8** vlib_thread_stacks

Definition at line 557 of file main.c.