21 #ifndef MEMIF_CACHELINE_SIZE 22 #define MEMIF_CACHELINE_SIZE 64 25 #define MEMIF_COOKIE 0x3E31F20 26 #define MEMIF_VERSION_MAJOR 2 27 #define MEMIF_VERSION_MINOR 0 28 #define MEMIF_VERSION ((MEMIF_VERSION_MAJOR << 8) | MEMIF_VERSION_MINOR) 30 #define MEMIF_SECRET_SIZE 24 74 typedef struct __attribute__ ((packed))
85 typedef struct __attribute__ ((packed))
88 memif_interface_id_t
id;
94 typedef struct __attribute__ ((packed))
100 typedef struct __attribute__ ((packed))
103 #define MEMIF_MSG_ADD_RING_FLAG_S2M (1 << 0) 111 typedef struct __attribute__ ((packed))
116 typedef struct __attribute__ ((packed))
121 typedef struct __attribute__ ((packed))
127 typedef struct __attribute__ ((packed, aligned (128)))
143 "Size of memif_msg_t must be 128");
149 typedef struct __attribute__ ((packed))
152 #define MEMIF_DESC_FLAG_NEXT (1 << 0) 160 "Size of memif_dsct_t must be 16 bytes");
162 #define MEMIF_CACHELINE_ALIGN_MARK(mark) \ 163 uint8_t mark[0] __attribute__((aligned(MEMIF_CACHELINE_SIZE))) 170 #define MEMIF_RING_FLAG_MASK_INT 1 memif_version_t max_version
memif_interface_mode_t mode
uint16_t memif_ring_index_t
memif_msg_add_region_t add_region
memif_msg_add_ring_t add_ring
uint16_t memif_region_index_t
memif_region_index_t region
memif_version_t min_version
uint16_t private_hdr_size
memif_ring_index_t max_m2s_ring
memif_region_offset_t offset
enum memif_msg_type memif_msg_type_t
memif_region_index_t region
uint32_t memif_region_offset_t
uint8_t memif_log2_ring_size_t
memif_msg_disconnect_t disconnect
memif_log2_ring_size_t max_log2_ring_size
#define MEMIF_CACHELINE_ALIGN_MARK(mark)
memif_region_index_t index
uint32_t memif_interface_id_t
memif_log2_ring_size_t log2_ring_size
memif_ring_index_t max_s2m_ring
#define MEMIF_SECRET_SIZE
memif_msg_connect_t connect
memif_region_offset_t offset
uint64_t memif_region_size_t
memif_region_index_t max_region
memif_msg_connected_t connected