FD.io VPP  v16.06
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

always_inline void ssvm_lock (ssvm_shared_header_t *h, u32 my_pid, u32 tag)
 
always_inline void ssvm_unlock (ssvm_shared_header_t *h)
 
static voidssvm_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 121 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 135 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 129 of file ssvm.h.

Function Documentation

always_inline void ssvm_lock ( ssvm_shared_header_t h,
u32  my_pid,
u32  tag 
)

Definition at line 82 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 17 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 116 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 109 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 94 of file ssvm.c.

+ Here is the caller graph for this function:

always_inline void ssvm_unlock ( ssvm_shared_header_t h)

Definition at line 98 of file ssvm.h.

+ Here is the caller graph for this function: