FD.io VPP  v21.06-3-gbb25fbf28
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_server_init_shm (ssvm_private_t *ssvm)
 
int ssvm_client_init_shm (ssvm_private_t *ssvm)
 
void ssvm_delete_shm (ssvm_private_t *ssvm)
 
int ssvm_server_init_memfd (ssvm_private_t *memfd)
 Initialize memfd segment server. More...
 
int ssvm_client_init_memfd (ssvm_private_t *memfd)
 Initialize memfd segment client. More...
 
void ssvm_delete_memfd (ssvm_private_t *memfd)
 
int ssvm_server_init_private (ssvm_private_t *ssvm)
 Initialize segment in a private heap. More...
 
int ssvm_client_init_private (ssvm_private_t *ssvm)
 
void ssvm_delete_private (ssvm_private_t *ssvm)
 
int ssvm_server_init (ssvm_private_t *ssvm, ssvm_segment_type_t type)
 
int ssvm_client_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 server_init_fns [SSVM_N_SEGMENT_TYPES]
 
static init_fn client_init_fns [SSVM_N_SEGMENT_TYPES]
 
static delete_fn delete_fns [SSVM_N_SEGMENT_TYPES]
 

Typedef Documentation

◆ delete_fn

typedef void(* delete_fn) (ssvm_private_t *)

Definition at line 19 of file ssvm.c.

◆ init_fn

typedef int(* init_fn) (ssvm_private_t *)

Definition at line 18 of file ssvm.c.

Function Documentation

◆ ssvm_client_init()

int ssvm_client_init ( ssvm_private_t ssvm,
ssvm_segment_type_t  type 
)

Definition at line 439 of file ssvm.c.

+ Here is the caller graph for this function:

◆ ssvm_client_init_memfd()

int ssvm_client_init_memfd ( ssvm_private_t memfd)

Initialize memfd segment client.

Subtly different than svm_client_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 292 of file ssvm.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ssvm_client_init_private()

int ssvm_client_init_private ( ssvm_private_t ssvm)

Definition at line 418 of file ssvm.c.

◆ ssvm_client_init_shm()

int ssvm_client_init_shm ( ssvm_private_t ssvm)

Definition at line 120 of file ssvm.c.

◆ ssvm_delete()

void ssvm_delete ( ssvm_private_t ssvm)

Definition at line 445 of file ssvm.c.

+ Here is the caller graph for this function:

◆ ssvm_delete_memfd()

void ssvm_delete_memfd ( ssvm_private_t memfd)

Definition at line 347 of file ssvm.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ssvm_delete_private()

void ssvm_delete_private ( ssvm_private_t ssvm)

Definition at line 425 of file ssvm.c.

+ Here is the call graph for this function:

◆ ssvm_delete_shm()

void ssvm_delete_shm ( ssvm_private_t ssvm)

Definition at line 190 of file ssvm.c.

+ Here is the call graph for this function:

◆ ssvm_name()

u8* ssvm_name ( const ssvm_private_t ssvm)

Definition at line 457 of file ssvm.c.

+ Here is the caller graph for this function:

◆ ssvm_server_init()

int ssvm_server_init ( ssvm_private_t ssvm,
ssvm_segment_type_t  type 
)

Definition at line 433 of file ssvm.c.

+ Here is the caller graph for this function:

◆ ssvm_server_init_memfd()

int ssvm_server_init_memfd ( ssvm_private_t memfd)

Initialize memfd segment server.

Definition at line 217 of file ssvm.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ssvm_server_init_private()

int ssvm_server_init_private ( ssvm_private_t ssvm)

Initialize segment in a private heap.

Definition at line 361 of file ssvm.c.

+ Here is the call graph for this function:

◆ ssvm_server_init_shm()

int ssvm_server_init_shm ( ssvm_private_t ssvm)

Definition at line 29 of file ssvm.c.

+ Here is the call graph for this function:

◆ ssvm_type()

ssvm_segment_type_t ssvm_type ( const ssvm_private_t ssvm)

Definition at line 451 of file ssvm.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ client_init_fns

init_fn client_init_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:

Definition at line 23 of file ssvm.c.

◆ delete_fns

delete_fn delete_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:

Definition at line 25 of file ssvm.c.

◆ server_init_fns

init_fn server_init_fns[SSVM_N_SEGMENT_TYPES]
static
Initial value:

Definition at line 21 of file ssvm.c.

ssvm_server_init_memfd
int ssvm_server_init_memfd(ssvm_private_t *memfd)
Initialize memfd segment server.
Definition: ssvm.c:217
ssvm_delete_memfd
void ssvm_delete_memfd(ssvm_private_t *memfd)
Definition: ssvm.c:347
ssvm_delete_shm
void ssvm_delete_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:190
ssvm_server_init_private
int ssvm_server_init_private(ssvm_private_t *ssvm)
Initialize segment in a private heap.
Definition: ssvm.c:361
ssvm_delete_private
void ssvm_delete_private(ssvm_private_t *ssvm)
Definition: ssvm.c:425
ssvm_client_init_shm
int ssvm_client_init_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:120
ssvm_client_init_private
int ssvm_client_init_private(ssvm_private_t *ssvm)
Definition: ssvm.c:418
ssvm_client_init_memfd
int ssvm_client_init_memfd(ssvm_private_t *memfd)
Initialize memfd segment client.
Definition: ssvm.c:292
ssvm_server_init_shm
int ssvm_server_init_shm(ssvm_private_t *ssvm)
Definition: ssvm.c:29