FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
slist.h File Reference
+ Include dependency graph for slist.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clib_slist_elt_t
 
struct  clib_slist_t
 

Typedefs

typedef word() clib_slist_key_compare_function_t(void *key, u32 elt_pool_index)
 

Enumerations

enum  clib_slist_search_result_t { CLIB_SLIST_MATCH = 0, CLIB_SLIST_NO_MATCH }
 

Functions

static u32 clib_slist_get_next_at_level (clib_slist_elt_t *elt, int level)
 
static void clib_slist_set_next_at_level (clib_slist_elt_t *elt, u32 index, int level)
 
clib_error_tclib_slist_init (clib_slist_t *sp, f64 branching_factor, clib_slist_key_compare_function_t compare, format_function_t format_user_element)
 
void clib_slist_add (clib_slist_t *sp, void *key, u32 user_pool_index)
 
clib_slist_search_result_t clib_slist_del (clib_slist_t *sp, void *key)
 
u32 clib_slist_search (clib_slist_t *sp, void *key, u32 *ncompares)
 

Variables

format_function_t format_slist
 

Typedef Documentation

◆ clib_slist_key_compare_function_t

typedef word() clib_slist_key_compare_function_t(void *key, u32 elt_pool_index)

Definition at line 29 of file slist.h.

Enumeration Type Documentation

◆ clib_slist_search_result_t

Enumerator
CLIB_SLIST_MATCH 
CLIB_SLIST_NO_MATCH 

Definition at line 31 of file slist.h.

Function Documentation

◆ clib_slist_add()

void clib_slist_add ( clib_slist_t sp,
void *  key,
u32  user_pool_index 
)

Definition at line 191 of file slist.c.

+ Here is the call graph for this function:

◆ clib_slist_del()

clib_slist_search_result_t clib_slist_del ( clib_slist_t sp,
void *  key 
)

Definition at line 250 of file slist.c.

+ Here is the call graph for this function:

◆ clib_slist_get_next_at_level()

static u32 clib_slist_get_next_at_level ( clib_slist_elt_t elt,
int  level 
)
inlinestatic

Definition at line 52 of file slist.h.

+ Here is the caller graph for this function:

◆ clib_slist_init()

clib_error_t* clib_slist_init ( clib_slist_t sp,
f64  branching_factor,
clib_slist_key_compare_function_t  compare,
format_function_t  format_user_element 
)

Definition at line 52 of file slist.c.

+ Here is the call graph for this function:

◆ clib_slist_search()

u32 clib_slist_search ( clib_slist_t sp,
void *  key,
u32 ncompares 
)

Definition at line 174 of file slist.c.

+ Here is the call graph for this function:

◆ clib_slist_set_next_at_level()

static void clib_slist_set_next_at_level ( clib_slist_elt_t elt,
u32  index,
int  level 
)
inlinestatic

Definition at line 71 of file slist.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ format_slist

format_function_t format_slist

Definition at line 131 of file slist.h.