FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
svm_fifo_segment.h File Reference
+ Include dependency graph for svm_fifo_segment.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  svm_fifo_segment_header_t
 
struct  svm_fifo_segment_private_t
 
struct  svm_fifo_segment_main_t
 
struct  svm_fifo_segment_create_args_t
 

Macros

#define foreach_ssvm_fifo_segment_api_error   _(OUT_OF_SPACE, "Out of space in segment", -200)
 

Enumerations

enum  ssvm_fifo_segment_api_error_enum_t { foreach_ssvm_fifo_segment_api_error }
 

Functions

static svm_fifo_segment_private_tsvm_fifo_get_segment (u32 segment_index)
 
int svm_fifo_segment_create (svm_fifo_segment_create_args_t *a)
 (master) create an svm fifo segment More...
 
int svm_fifo_segment_attach (svm_fifo_segment_create_args_t *a)
 (slave) attach to an svm fifo segment More...
 
void svm_fifo_segment_delete (svm_fifo_segment_private_t *s)
 
svm_fifo_tsvm_fifo_segment_alloc_fifo (svm_fifo_segment_private_t *s, u32 data_size_in_bytes)
 
void svm_fifo_segment_free_fifo (svm_fifo_segment_private_t *s, svm_fifo_t *f)
 
void svm_fifo_segment_init (u64 baseva, u32 timeout_in_seconds)
 
u32 svm_fifo_segment_index (svm_fifo_segment_private_t *s)
 

Variables

svm_fifo_segment_main_t svm_fifo_segment_main
 

Macro Definition Documentation

#define foreach_ssvm_fifo_segment_api_error   _(OUT_OF_SPACE, "Out of space in segment", -200)

Definition at line 58 of file svm_fifo_segment.h.

Enumeration Type Documentation

Enumerator
foreach_ssvm_fifo_segment_api_error 

Definition at line 61 of file svm_fifo_segment.h.

Function Documentation

static svm_fifo_segment_private_t* svm_fifo_get_segment ( u32  segment_index)
inlinestatic

Definition at line 52 of file svm_fifo_segment.h.

+ Here is the caller graph for this function:

svm_fifo_t* svm_fifo_segment_alloc_fifo ( svm_fifo_segment_private_t s,
u32  data_size_in_bytes 
)

Definition at line 119 of file svm_fifo_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svm_fifo_segment_attach ( svm_fifo_segment_create_args_t a)

(slave) attach to an svm fifo segment

Definition at line 75 of file svm_fifo_segment.c.

+ Here is the call graph for this function:

int svm_fifo_segment_create ( svm_fifo_segment_create_args_t a)

(master) create an svm fifo segment

Definition at line 22 of file svm_fifo_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void svm_fifo_segment_delete ( svm_fifo_segment_private_t s)

Definition at line 111 of file svm_fifo_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void svm_fifo_segment_free_fifo ( svm_fifo_segment_private_t s,
svm_fifo_t f 
)

Definition at line 146 of file svm_fifo_segment.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 svm_fifo_segment_index ( svm_fifo_segment_private_t s)

Definition at line 182 of file svm_fifo_segment.c.

+ Here is the caller graph for this function:

void svm_fifo_segment_init ( u64  baseva,
u32  timeout_in_seconds 
)

Definition at line 173 of file svm_fifo_segment.c.

+ Here is the caller graph for this function:

Variable Documentation

svm_fifo_segment_main_t svm_fifo_segment_main

Definition at line 18 of file svm_fifo_segment.c.