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

Go to the source code of this file.

Data Structures

struct  ssvm_shared_header_t
 
struct  ssvm_private_t
 

Macros

#define MMAP_PAGESIZE   (clib_mem_get_page_size())
 
#define SSVM_N_OPAQUE   7
 
#define foreach_ssvm_api_error
 
#define SSVM_API_ERROR_NO_NAME   (-10)
 

Enumerations

enum  ssvm_api_error_enum_t { foreach_ssvm_api_error }
 

Functions

static void ssvm_lock (ssvm_shared_header_t *h, u32 my_pid, u32 tag)
 
static void ssvm_lock_non_recursive (ssvm_shared_header_t *h, u32 tag)
 
static void ssvm_unlock (ssvm_shared_header_t *h)
 
static void ssvm_unlock_non_recursive (ssvm_shared_header_t *h)
 
static void * ssvm_push_heap (ssvm_shared_header_t *sh)
 
static void ssvm_pop_heap (void *oldheap)
 
int ssvm_master_init (ssvm_private_t *ssvm, u32 master_index)
 
int ssvm_slave_init (ssvm_private_t *ssvm, int timeout_in_seconds)
 
void ssvm_delete (ssvm_private_t *ssvm)
 

Macro Definition Documentation

#define foreach_ssvm_api_error
Value:
_(NO_NAME, "No shared segment name", -100) \
_(NO_SIZE, "Size not set (master)", -101) \
_(CREATE_FAILURE, "Create failed", -102) \
_(SET_SIZE, "Set size failed", -103) \
_(MMAP, "mmap failed", -104) \
_(SLAVE_TIMEOUT, "Slave map timeout", -105)

Definition at line 147 of file ssvm.h.

#define MMAP_PAGESIZE   (clib_mem_get_page_size())

Definition at line 42 of file ssvm.h.

#define SSVM_API_ERROR_NO_NAME   (-10)

Definition at line 162 of file ssvm.h.

#define SSVM_N_OPAQUE   7

Definition at line 45 of file ssvm.h.

Enumeration Type Documentation

Enumerator
foreach_ssvm_api_error 

Definition at line 155 of file ssvm.h.

Function Documentation

void ssvm_delete ( ssvm_private_t ssvm)

Definition at line 185 of file ssvm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ssvm_lock ( ssvm_shared_header_t h,
u32  my_pid,
u32  tag 
)
inlinestatic

Definition at line 88 of file ssvm.h.

+ Here is the caller graph for this function:

static void ssvm_lock_non_recursive ( ssvm_shared_header_t h,
u32  tag 
)
inlinestatic

Definition at line 105 of file ssvm.h.

+ Here is the caller graph for this function:

int ssvm_master_init ( ssvm_private_t ssvm,
u32  master_index 
)

Definition at line 19 of file ssvm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ssvm_pop_heap ( void *  oldheap)
inlinestatic

Definition at line 142 of file ssvm.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* ssvm_push_heap ( ssvm_shared_header_t sh)
inlinestatic

Definition at line 134 of file ssvm.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ssvm_slave_init ( ssvm_private_t ssvm,
int  timeout_in_seconds 
)

Definition at line 115 of file ssvm.c.

+ Here is the caller graph for this function:

static void ssvm_unlock ( ssvm_shared_header_t h)
inlinestatic

Definition at line 114 of file ssvm.h.

+ Here is the caller graph for this function:

static void ssvm_unlock_non_recursive ( ssvm_shared_header_t h)
inlinestatic

Definition at line 126 of file ssvm.h.

+ Here is the caller graph for this function: