FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
file.h File Reference
+ Include dependency graph for file.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clib_file
 
struct  clib_file_main_t
 

Macros

#define UNIX_FILE_DATA_AVAILABLE_TO_WRITE   (1 << 0)
 
#define UNIX_FILE_EVENT_EDGE_TRIGGERED   (1 << 1)
 

Typedefs

typedef clib_error_t *( clib_file_function_t) (struct clib_file *f)
 
typedef struct clib_file clib_file_t
 

Enumerations

enum  clib_file_update_type_t { UNIX_FILE_UPDATE_ADD, UNIX_FILE_UPDATE_MODIFY, UNIX_FILE_UPDATE_DELETE }
 

Functions

static uword clib_file_add (clib_file_main_t *um, clib_file_t *template)
 
static void clib_file_del (clib_file_main_t *um, clib_file_t *f)
 
static void clib_file_del_by_index (clib_file_main_t *um, uword index)
 
static void clib_file_set_polling_thread (clib_file_main_t *um, uword index, u32 thread_index)
 
static uword clib_file_set_data_available_to_write (clib_file_main_t *um, u32 clib_file_index, uword is_available)
 
static clib_file_tclib_file_get (clib_file_main_t *fm, u32 file_index)
 

Macro Definition Documentation

#define UNIX_FILE_DATA_AVAILABLE_TO_WRITE   (1 << 0)

Definition at line 57 of file file.h.

#define UNIX_FILE_EVENT_EDGE_TRIGGERED   (1 << 1)

Definition at line 58 of file file.h.

Typedef Documentation

typedef clib_error_t*( clib_file_function_t) (struct clib_file *f)

Definition at line 49 of file file.h.

typedef struct clib_file clib_file_t

Enumeration Type Documentation

Enumerator
UNIX_FILE_UPDATE_ADD 
UNIX_FILE_UPDATE_MODIFY 
UNIX_FILE_UPDATE_DELETE 

Definition at line 78 of file file.h.

Function Documentation

static uword clib_file_add ( clib_file_main_t um,
clib_file_t template 
)
inlinestatic

Definition at line 96 of file file.h.

+ Here is the caller graph for this function:

static void clib_file_del ( clib_file_main_t um,
clib_file_t f 
)
inlinestatic

Definition at line 109 of file file.h.

+ Here is the caller graph for this function:

static void clib_file_del_by_index ( clib_file_main_t um,
uword  index 
)
inlinestatic

Definition at line 119 of file file.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_file_t* clib_file_get ( clib_file_main_t fm,
u32  file_index 
)
inlinestatic

Definition at line 152 of file file.h.

+ Here is the caller graph for this function:

static uword clib_file_set_data_available_to_write ( clib_file_main_t um,
u32  clib_file_index,
uword  is_available 
)
inlinestatic

Definition at line 137 of file file.h.

+ Here is the caller graph for this function:

static void clib_file_set_polling_thread ( clib_file_main_t um,
uword  index,
u32  thread_index 
)
inlinestatic

Definition at line 127 of file file.h.