Go to the source code of this file.
|
static uword | unix_file_add (unix_main_t *um, unix_file_t *template) |
|
static void | unix_file_del (unix_main_t *um, unix_file_t *f) |
|
static uword | unix_file_set_data_available_to_write (u32 unix_file_index, uword is_available) |
|
static void | unix_save_error (unix_main_t *um, clib_error_t *error) |
|
int | vlib_unix_main (int argc, char *argv[]) |
|
clib_error_t * | unix_physmem_init (vlib_main_t *vm, int fail_if_physical_memory_not_present) |
|
static int | unix_physmem_is_fake (vlib_main_t *vm) |
|
void | vlib_unix_cli_set_prompt (char *prompt) |
| Set the CLI prompt. More...
|
|
static unix_main_t * | vlib_unix_get_main (void) |
|
clib_error_t * | vlib_sysfs_write (char *file_name, char *fmt,...) |
|
clib_error_t * | vlib_sysfs_read (char *file_name, char *fmt,...) |
|
u8 * | vlib_sysfs_link_to_name (char *link) |
|
clib_error_t * | foreach_directory_file (char *dir_name, clib_error_t *(*f)(void *arg, u8 *path_name, u8 *file_name), void *arg, int scan_dirs) |
|
#define UNIX_FILE_DATA_AVAILABLE_TO_WRITE (1 << 0) |
#define UNIX_FILE_EVENT_EDGE_TRIGGERED (1 << 1) |
#define UNIX_FLAG_INTERACTIVE (1 << 0) |
#define UNIX_FLAG_NODAEMON (1 << 1) |
Enumerator |
---|
UNIX_FILE_UPDATE_ADD |
|
UNIX_FILE_UPDATE_MODIFY |
|
UNIX_FILE_UPDATE_DELETE |
|
Definition at line 71 of file unix.h.
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 |
|
) |
| |
static uword unix_file_set_data_available_to_write |
( |
u32 |
unix_file_index, |
|
|
uword |
is_available |
|
) |
| |
|
inlinestatic |
u8* vlib_sysfs_link_to_name |
( |
char * |
link | ) |
|
clib_error_t* vlib_sysfs_read |
( |
char * |
file_name, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |
clib_error_t* vlib_sysfs_write |
( |
char * |
file_name, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |
void vlib_unix_cli_set_prompt |
( |
char * |
prompt | ) |
|
Set the CLI prompt.
- Parameters
-
prompt | The C string to set the prompt to. |
- Note
- This setting is global; it impacts all current and future CLI sessions.
Definition at line 2532 of file cli.c.
int vlib_unix_main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |