FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
svmdb.h File Reference
+ Include dependency graph for svmdb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  svmdb_notify_t
 
struct  svmdb_value_t
 
struct  svmdb_shm_hdr_t
 
struct  svmdb_client_t
 
struct  svmdb_notification_args_t
 
struct  svmdb_map_args_t
 

Macros

#define SVMDB_SHM_VERSION   2
 
#define SVMDB_DEFAULT_SIZE   (4<<20)
 

Enumerations

enum  svmdb_action_t { SVMDB_ACTION_ILLEGAL = 0, SVMDB_ACTION_GET, SVMDB_ACTION_SET, SVMDB_ACTION_UNSET }
 
enum  svmdb_namespace_t { SVMDB_NAMESPACE_STRING = 0, SVMDB_NAMESPACE_VEC, SVMDB_N_NAMESPACES }
 

Functions

svmdb_client_tsvmdb_map (svmdb_map_args_t *)
 
void svmdb_unmap (svmdb_client_t *client)
 
void svmdb_local_unset_string_variable (svmdb_client_t *client, char *var)
 
void svmdb_local_set_string_variable (svmdb_client_t *client, char *var, char *val)
 
char * svmdb_local_get_string_variable (svmdb_client_t *client, char *var)
 
void * svmdb_local_get_variable_reference (svmdb_client_t *client, svmdb_namespace_t ns, char *var)
 
void svmdb_local_dump_strings (svmdb_client_t *client)
 
void svmdb_local_unset_vec_variable (svmdb_client_t *client, char *var)
 
void svmdb_local_set_vec_variable (svmdb_client_t *client, char *var, void *val, u32 elsize)
 
void * svmdb_local_get_vec_variable (svmdb_client_t *client, char *var, u32 elsize)
 
void svmdb_local_dump_vecs (svmdb_client_t *client)
 
int svmdb_local_add_del_notification (svmdb_client_t *client, svmdb_notification_args_t *args)
 
void * svmdb_local_find_or_add_vec_variable (svmdb_client_t *client, char *var, u32 nbytes)
 
int svmdb_local_serialize_strings (svmdb_client_t *client, char *filename)
 
int svmdb_local_unserialize_strings (svmdb_client_t *client, char *filename)
 

Macro Definition Documentation

◆ SVMDB_DEFAULT_SIZE

#define SVMDB_DEFAULT_SIZE   (4<<20)

Definition at line 96 of file svmdb.h.

◆ SVMDB_SHM_VERSION

#define SVMDB_SHM_VERSION   2

Definition at line 63 of file svmdb.h.

Enumeration Type Documentation

◆ svmdb_action_t

Enumerator
SVMDB_ACTION_ILLEGAL 
SVMDB_ACTION_GET 
SVMDB_ACTION_SET 
SVMDB_ACTION_UNSET 

Definition at line 25 of file svmdb.h.

◆ svmdb_namespace_t

Enumerator
SVMDB_NAMESPACE_STRING 
SVMDB_NAMESPACE_VEC 
SVMDB_N_NAMESPACES 

Definition at line 48 of file svmdb.h.

Function Documentation

◆ svmdb_local_add_del_notification()

int svmdb_local_add_del_notification ( svmdb_client_t client,
svmdb_notification_args_t args 
)

Definition at line 194 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_dump_strings()

void svmdb_local_dump_strings ( svmdb_client_t client)

Definition at line 407 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_dump_vecs()

void svmdb_local_dump_vecs ( svmdb_client_t client)

Definition at line 602 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_find_or_add_vec_variable()

void* svmdb_local_find_or_add_vec_variable ( svmdb_client_t client,
char *  var,
u32  nbytes 
)

Definition at line 628 of file svmdb.c.

+ Here is the call graph for this function:

◆ svmdb_local_get_string_variable()

char* svmdb_local_get_string_variable ( svmdb_client_t client,
char *  var 
)

Definition at line 390 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_get_variable_reference()

void* svmdb_local_get_variable_reference ( svmdb_client_t client,
svmdb_namespace_t  ns,
char *  var 
)

Definition at line 378 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_get_vec_variable()

void* svmdb_local_get_vec_variable ( svmdb_client_t client,
char *  var,
u32  elsize 
)

Definition at line 579 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_serialize_strings()

int svmdb_local_serialize_strings ( svmdb_client_t client,
char *  filename 
)

Definition at line 431 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_set_string_variable()

void svmdb_local_set_string_variable ( svmdb_client_t client,
char *  var,
char *  val 
)

Definition at line 340 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_set_vec_variable()

void svmdb_local_set_vec_variable ( svmdb_client_t client,
char *  var,
void *  val,
u32  elsize 
)

Definition at line 561 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_unserialize_strings()

int svmdb_local_unserialize_strings ( svmdb_client_t client,
char *  filename 
)

Definition at line 497 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_unset_string_variable()

void svmdb_local_unset_string_variable ( svmdb_client_t client,
char *  var 
)

Definition at line 291 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_local_unset_vec_variable()

void svmdb_local_unset_vec_variable ( svmdb_client_t client,
char *  var 
)

Definition at line 549 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_map()

svmdb_client_t* svmdb_map ( svmdb_map_args_t )

Definition at line 71 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ svmdb_unmap()

void svmdb_unmap ( svmdb_client_t client)

Definition at line 139 of file svmdb.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: