20 #ifndef included_vlibmemory_api_h 21 #define included_vlibmemory_api_h 54 #define foreach_vl_aring_size \ 59 #define foreach_clnt_aring_size \ 96 #define VL_SHM_VERSION 2 98 #define VL_API_EPOCH_MASK 0xFF 99 #define VL_API_EPOCH_SHIFT 8 113 ASSERT (index < 0x00FFFFFF);
int vl_client_connect_to_vlib(char *svm_name, char *client_name, int rx_queue_size)
void vl_enable_disable_memory_api(vlib_main_t *vm, int yesno)
void vl_set_memory_gid(int gid)
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
void vl_client_disconnect_from_vlib(void)
unix_shared_memory_queue_t * vl_input_queue
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
ring_alloc_t * client_rings
void vl_unmap_shmem(void)
void vl_set_memory_uid(int uid)
void vl_msg_api_free(void *)
void vl_api_rpc_call_main_thread(void *fp, u8 *data, u32 data_length)
vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
int vl_client_api_map(char *region_name)
void vl_set_memory_root_path(char *root_path)
static u32 vl_msg_api_handle_get_index(u32 index)
u16 vl_client_get_first_plugin_msg_id(char *plugin_name)
void * vl_msg_api_alloc(int nbytes)
int vl_client_connect_to_vlib_no_rx_pthread(char *svm_name, char *client_name, int rx_queue_size)
unix_shared_memory_queue_t * q
struct vl_shmem_hdr_ vl_shmem_hdr_t
int vl_client_connect(char *name, int ctx_quota, int input_queue_size)
#define VL_API_EPOCH_MASK
void vl_msg_api_send(vl_api_registration_t *rp, u8 *elem)
#define VL_API_EPOCH_SHIFT
void vl_register_mapped_shmem_region(svm_region_t *rp)
void vl_client_disconnect(void)
void vl_client_api_unmap(void)
void vl_set_memory_region_name(char *name)
int vl_map_shmem(char *region_name, int is_vlib)
struct ring_alloc_ ring_alloc_t
unix_shared_memory_queue_t * rp
void vl_msg_api_send_shmem_nolock(unix_shared_memory_queue_t *q, u8 *elem)
void * vl_msg_api_alloc_as_if_client(int nbytes)
static u32 vl_msg_api_handle_get_epoch(u32 index)
static u32 vl_msg_api_handle_from_index_and_epoch(u32 index, u32 epoch)
struct _unix_shared_memory_queue unix_shared_memory_queue_t