FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
ssvm.c File Reference
+ Include dependency graph for ssvm.c:

Go to the source code of this file.

Typedefs

typedef int(* init_fn) (ssvm_private_t *)
 
typedef void(* delete_fn) (ssvm_private_t *)
 

Functions

int ssvm_master_init_shm (ssvm_private_t *ssvm)
 
int ssvm_slave_init_shm (ssvm_private_t *ssvm)
 
void ssvm_delete_shm (ssvm_private_t *ssvm)
 
int ssvm_master_init_memfd (ssvm_private_t *memfd)
 Initialize memfd segment master. More...
 
int ssvm_slave_init_memfd (ssvm_private_t *memfd)
 Initialize memfd segment slave. More...
 
void ssvm_delete_memfd (ssvm_private_t *memfd)
 
int ssvm_master_init_private (ssvm_private_t *ssvm)
 Initialize segment in a private heap. More...
 
int ssvm_slave_init_private (ssvm_private_t *ssvm)
 
void ssvm_delete_private (ssvm_private_t *ssvm)
 
int ssvm_master_init (ssvm_private_t *ssvm, ssvm_segment_type_t type)
 
int ssvm_slave_init (ssvm_private_t *ssvm, ssvm_segment_type_t type)
 
void ssvm_delete (ssvm_private_t *ssvm)
 
ssvm_segment_type_t ssvm_type (const ssvm_private_t *ssvm)
 
u8ssvm_name (const ssvm_private_t *ssvm)
 

Variables

static init_fn master_init_fns [SSVM_N_SEGMENT_TYPES]
 
static init_fn slave_init_fns [SSVM_N_SEGMENT_TYPES]
 
static delete_fn delete_fns [SSVM_N_SEGMENT_TYPES]
 

Typedef Documentation

typedef void(* delete_fn) (ssvm_private_t *)

Definition at line 19 of file ssvm.c.

typedef int(* init_fn) (ssvm_private_t *)

Definition at line 18 of file ssvm.c.

Function Documentation

void ssvm_delete ( ssvm_private_t ssvm)

Definition at line 387 of file ssvm.c.

+ Here is the caller graph for this function:

void ssvm_delete_memfd ( ssvm_private_t memfd)

Definition at line 314 of file ssvm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ssvm_delete_private ( ssvm_private_t ssvm)

Definition at line 367 of file ssvm.c.

+ Here is the call graph for this function:

void ssvm_delete_shm ( ssvm_private_t ssvm)

Definition at line 185 of file ssvm.c.

+ Here is the call graph for this function:

int ssvm_master_init ( ssvm_private_t ssvm,
ssvm_segment_type_t  type 
)

Definition at line 375 of file ssvm.c.

+ Here is the caller graph for this function:

int ssvm_master_init_memfd ( ssvm_private_t memfd)

Initialize memfd segment master.

Definition at line 209 of file ssvm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ssvm_master_init_private ( ssvm_private_t ssvm)

Initialize segment in a private heap.

Definition at line 325 of file ssvm.c.

+ Here is the call graph for this function:

int ssvm_master_init_shm ( ssvm_private_t ssvm)

Definition at line 29 of file ssvm.c.

+ Here is the call graph for this function:

u8* ssvm_name ( const ssvm_private_t ssvm)

Definition at line 399 of file ssvm.c.

int ssvm_slave_init ( ssvm_private_t ssvm,
ssvm_segment_type_t  type 
)

Definition at line 381 of file ssvm.c.

+ Here is the caller graph for this function:

int ssvm_slave_init_memfd ( ssvm_private_t memfd)

Initialize memfd segment slave.

Subtly different than svm_slave_init. The caller needs to acquire a usable file descriptor for the memfd segment e.g. via vppinfra/socket.c:default_socket_recvmsg

Definition at line 262 of file ssvm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ssvm_slave_init_private ( ssvm_private_t ssvm)

Definition at line 360 of file ssvm.c.

int ssvm_slave_init_shm ( ssvm_private_t ssvm)

Definition at line 115 of file ssvm.c.

ssvm_segment_type_t ssvm_type ( const ssvm_private_t ssvm)

Definition at line 393 of file ssvm.c.

+ Here is the caller graph for this function:

Variable Documentation

delete_fn delete_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:
=
void ssvm_delete_memfd(ssvm_private_t *memfd)
Definition: ssvm.c:314
void ssvm_delete_private(ssvm_private_t *ssvm)
Definition: ssvm.c:367
void ssvm_delete_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:185

Definition at line 25 of file ssvm.c.

init_fn master_init_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:
=
int ssvm_master_init_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:29
int ssvm_master_init_memfd(ssvm_private_t *memfd)
Initialize memfd segment master.
Definition: ssvm.c:209
int ssvm_master_init_private(ssvm_private_t *ssvm)
Initialize segment in a private heap.
Definition: ssvm.c:325

Definition at line 21 of file ssvm.c.

init_fn slave_init_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:
=
int ssvm_slave_init_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:115
int ssvm_slave_init_private(ssvm_private_t *ssvm)
Definition: ssvm.c:360
int ssvm_slave_init_memfd(ssvm_private_t *memfd)
Initialize memfd segment slave.
Definition: ssvm.c:262

Definition at line 23 of file ssvm.c.