FD.io VPP  v18.07.1-19-g511ce25
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 391 of file ssvm.c.

+ Here is the caller graph for this function:

void ssvm_delete_memfd ( ssvm_private_t memfd)

Definition at line 318 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 371 of file ssvm.c.

+ Here is the call graph for this function:

void ssvm_delete_shm ( ssvm_private_t ssvm)

Definition at line 189 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 379 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 213 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 329 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 403 of file ssvm.c.

int ssvm_slave_init ( ssvm_private_t ssvm,
ssvm_segment_type_t  type 
)

Definition at line 385 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 266 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 364 of file ssvm.c.

int ssvm_slave_init_shm ( ssvm_private_t ssvm)

Definition at line 119 of file ssvm.c.

ssvm_segment_type_t ssvm_type ( const ssvm_private_t ssvm)

Definition at line 397 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:318
void ssvm_delete_private(ssvm_private_t *ssvm)
Definition: ssvm.c:371
void ssvm_delete_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:189

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:213
int ssvm_master_init_private(ssvm_private_t *ssvm)
Initialize segment in a private heap.
Definition: ssvm.c:329

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:119
int ssvm_slave_init_private(ssvm_private_t *ssvm)
Definition: ssvm.c:364
int ssvm_slave_init_memfd(ssvm_private_t *memfd)
Initialize memfd segment slave.
Definition: ssvm.c:266

Definition at line 23 of file ssvm.c.