FD.io VPP
v21.01.1
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_ |
int ssvm_client_init | ( | ssvm_private_t * | ssvm, |
ssvm_segment_type_t | type | ||
) |
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.
int ssvm_client_init_private | ( | ssvm_private_t * | ssvm | ) |
int ssvm_client_init_shm | ( | ssvm_private_t * | ssvm | ) |
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 |
|
inlinestatic |
u8* ssvm_name | ( | const ssvm_private_t * | ssvm | ) |
|
inlinestatic |
|
inlinestatic |
int ssvm_server_init | ( | ssvm_private_t * | ssvm, |
ssvm_segment_type_t | type | ||
) |
int ssvm_server_init_memfd | ( | ssvm_private_t * | memfd | ) |
int ssvm_server_init_private | ( | ssvm_private_t * | ssvm | ) |
int ssvm_server_init_shm | ( | ssvm_private_t * | ssvm | ) |
ssvm_segment_type_t ssvm_type | ( | const ssvm_private_t * | ssvm | ) |
|
inlinestatic |
|
inlinestatic |