FD.io VPP  v21.06-3-gbb25fbf28
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)
 
static clib_error_tclib_file_write (clib_file_t *f)
 

Macro Definition Documentation

◆ UNIX_FILE_DATA_AVAILABLE_TO_WRITE

#define UNIX_FILE_DATA_AVAILABLE_TO_WRITE   (1 << 0)

Definition at line 57 of file file.h.

◆ UNIX_FILE_EVENT_EDGE_TRIGGERED

#define UNIX_FILE_EVENT_EDGE_TRIGGERED   (1 << 1)

Definition at line 58 of file file.h.

Typedef Documentation

◆ clib_file_function_t

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

Definition at line 49 of file file.h.

◆ clib_file_t

typedef struct clib_file clib_file_t

Enumeration Type Documentation

◆ clib_file_update_type_t

Enumerator
UNIX_FILE_UPDATE_ADD 
UNIX_FILE_UPDATE_MODIFY 
UNIX_FILE_UPDATE_DELETE 

Definition at line 78 of file file.h.

Function Documentation

◆ clib_file_add()

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:

◆ clib_file_del()

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:

◆ clib_file_del_by_index()

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:

◆ clib_file_get()

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:

◆ clib_file_set_data_available_to_write()

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:

◆ clib_file_set_polling_thread()

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.

+ Here is the caller graph for this function:

◆ clib_file_write()

static clib_error_t* clib_file_write ( clib_file_t f)
inlinestatic

Definition at line 160 of file file.h.

+ Here is the caller graph for this function: