FD.io VPP  v17.01-9-ge7dcee4
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   (4<<10)
 
#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_unlock (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)
 

Macro Definition Documentation

#define foreach_ssvm_api_error
Value:
_(NO_NAME, "No shared segment name", -10) \
_(NO_SIZE, "Size not set (master)", -11) \
_(CREATE_FAILURE, "Create failed", -12) \
_(SET_SIZE, "Set size failed", -13) \
_(MMAP, "mmap failed", -14) \
_(SLAVE_TIMEOUT, "Slave map timeout", -15)

Definition at line 127 of file ssvm.h.

#define MMAP_PAGESIZE   (4<<10)

Definition at line 41 of file ssvm.h.

#define SSVM_API_ERROR_NO_NAME   (-10)

Definition at line 142 of file ssvm.h.

#define SSVM_N_OPAQUE   7

Definition at line 42 of file ssvm.h.

Enumeration Type Documentation

Enumerator
foreach_ssvm_api_error 

Definition at line 135 of file ssvm.h.

Function Documentation

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

Definition at line 85 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 18 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 122 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 114 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 104 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 102 of file ssvm.h.

+ Here is the caller graph for this function: