FD.io VPP
v19.01.2-3-gf61a1a8
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | ssvm_shared_header_t |
struct | ssvm_private_t |
Macros | |
#define | MMAP_PAGESIZE (clib_mem_get_page_size()) |
#define | SSVM_N_OPAQUE 7 |
#define | foreach_ssvm_api_error |
#define | SSVM_API_ERROR_NO_NAME (-10) |
Typedefs | |
typedef enum ssvm_segment_type_ | ssvm_segment_type_t |
Enumerations | |
enum | ssvm_segment_type_ { SSVM_SEGMENT_SHM = 0, SSVM_SEGMENT_MEMFD, SSVM_SEGMENT_PRIVATE, SSVM_N_SEGMENT_TYPES } |
enum | ssvm_api_error_enum_t { foreach_ssvm_api_error } |
#define foreach_ssvm_api_error |
#define MMAP_PAGESIZE (clib_mem_get_page_size()) |
typedef enum ssvm_segment_type_ ssvm_segment_type_t |
enum ssvm_segment_type_ |
void ssvm_delete | ( | ssvm_private_t * | ssvm | ) |
void ssvm_delete_memfd | ( | ssvm_private_t * | memfd | ) |
void ssvm_delete_private | ( | ssvm_private_t * | ssvm | ) |
void ssvm_delete_shm | ( | ssvm_private_t * | ssvm | ) |
|
inlinestatic |
|
inlinestatic |
int ssvm_master_init | ( | ssvm_private_t * | ssvm, |
ssvm_segment_type_t | type | ||
) |
int ssvm_master_init_memfd | ( | ssvm_private_t * | memfd | ) |
int ssvm_master_init_private | ( | ssvm_private_t * | ssvm | ) |
int ssvm_master_init_shm | ( | ssvm_private_t * | ssvm | ) |
|
inlinestatic |
u8* ssvm_name | ( | const ssvm_private_t * | ssvm | ) |
|
inlinestatic |
|
inlinestatic |
int ssvm_slave_init | ( | ssvm_private_t * | ssvm, |
ssvm_segment_type_t | type | ||
) |
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 285 of file ssvm.c.
int ssvm_slave_init_private | ( | ssvm_private_t * | ssvm | ) |
int ssvm_slave_init_shm | ( | ssvm_private_t * | ssvm | ) |
ssvm_segment_type_t ssvm_type | ( | const ssvm_private_t * | ssvm | ) |
|
inlinestatic |
|
inlinestatic |