18 #ifndef included_vlibmemory_api_common_h 19 #define included_vlibmemory_api_common_h 50 #define foreach_vl_aring_size \ 55 #define foreach_clnt_aring_size \ 89 #define VL_SHM_VERSION 2 91 #define VL_API_EPOCH_MASK 0xFF 92 #define VL_API_EPOCH_SHIFT 8 124 const char *client_name,
void * vl_msg_api_alloc_as_if_client(int nbytes)
void vl_set_api_memory_size(u64 size)
struct ring_alloc_ ring_alloc_t
void vl_client_disconnect(void)
void vl_set_memory_gid(int gid)
unix_shared_memory_queue_t * vl_input_queue
ring_alloc_t * client_rings
void vl_set_memory_uid(int uid)
int vl_client_connect(const char *name, int ctx_quota, int input_queue_size)
void vl_client_api_unmap(void)
int vl_client_connect_to_vlib(const char *svm_name, const char *client_name, int rx_queue_size)
void * vl_msg_api_alloc(int nbytes)
void vl_msg_api_free(void *)
void vl_set_global_memory_baseva(u64 baseva)
An API client registration, only in vpp/vlib.
void * vl_msg_api_alloc_as_if_client_or_null(int nbytes)
void vl_unmap_shmem(void)
void vl_set_global_pvt_heap_size(u64 size)
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
void vl_set_memory_region_name(const char *name)
void vl_api_rpc_call_main_thread(void *fp, u8 *data, u32 data_length)
u32 vl_api_memclnt_create_internal(char *, unix_shared_memory_queue_t *)
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
void vl_register_mapped_shmem_region(svm_region_t *rp)
void vl_set_api_pvt_heap_size(u64 size)
void vl_msg_api_send_shmem_nolock(unix_shared_memory_queue_t *q, u8 *elem)
void vl_client_disconnect_from_vlib(void)
unix_shared_memory_queue_t * rp
vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
int vl_client_api_map(const char *region_name)
struct vl_shmem_hdr_ vl_shmem_hdr_t
void vl_set_global_memory_size(u64 size)
void vl_set_memory_root_path(const char *root_path)
int vl_client_connect_to_vlib_no_rx_pthread(const char *svm_name, const char *client_name, int rx_queue_size)
int vl_map_shmem(const char *region_name, int is_vlib)
void vl_msg_api_send(vl_api_registration_t *rp, u8 *elem)
void * vl_msg_api_alloc_or_null(int nbytes)
u16 vl_client_get_first_plugin_msg_id(const char *plugin_name)
struct _unix_shared_memory_queue unix_shared_memory_queue_t