18 #ifndef included_vlibmemory_api_common_h 19 #define included_vlibmemory_api_common_h 114 #define foreach_histogram_bucket \ 122 #define _(n) SLEEP_##n##_US, 136 u8 * buffer,
uword buffer_bytes);
static void clib_file_del(clib_file_main_t *um, clib_file_t *f)
u64 vector_rate_histogram[]
static void vl_api_registration_del_file(vl_api_registration_t *reg)
void vl_socket_api_send(vl_api_registration_t *rp, u8 *elem)
volatile int ** vl_api_queue_cursizes
static clib_file_t * vl_api_registration_file(vl_api_registration_t *reg)
enum vl_api_clnt_process_events vl_api_clnt_process_events_t
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
int vl_mem_api_can_send(svm_queue_t *q)
void sockclnt_close_index(u32 index)
void vl_client_msg_api_send(vl_api_registration_t *cm, u8 *elem)
clib_error_t * vl_sock_api_recv_fd_msg(int socket_fd, int fds[], int n_fds, u32 wait)
static int vl_api_can_send_msg(vl_api_registration_t *rp)
u32 clib_file_index
Socket only: file index.
static clib_file_t * clib_file_get(clib_file_main_t *fm, u32 file_index)
static clib_error_t * vl_api_recv_fd_msg(vl_api_registration_t *reg, int fds[], int n_fds, u32 wait)
vl_api_registration_t * vl_mem_api_client_index_to_registration(u32 handle)
#define foreach_histogram_bucket
vlib_node_registration_t vl_api_clnt_node
(constructor) VLIB_REGISTER_NODE (vl_api_clnt_node)
void vl_api_rpc_call_main_thread(void *fp, u8 *data, u32 data_length)
clib_file_main_t file_main
vl_api_registration_t * sockclnt_get_registration(u32 index)
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
vl_registration_type_t registration_type
type
svm_queue_t * vl_input_queue
shared memory only: pointer to client input queue
vl_api_clnt_process_events
u16 vl_client_get_first_plugin_msg_id(const char *plugin_name)
API main structure, used by both vpp and binary API clients.
u32 sockclnt_open_index(char *client_name, char *hostname, int port)
An API client registration, only in vpp/vlib.
Shared memory connection.
vl_api_registration_t * vl_socket_api_client_handle_to_registration(u32 handle)
u8 * vl_api_serialize_message_table(api_main_t *am, u8 *vector)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
static clib_error_t * vl_api_send_fd_msg(vl_api_registration_t *reg, int fds[], int n_fds)
static u32 vl_api_registration_file_index(vl_api_registration_t *reg)
void vl_api_send_pending_rpc_requests(vlib_main_t *vm)
u8 vl_socket_api_registration_handle_is_valid(u32 reg_handle)
struct _vlib_node_registration vlib_node_registration_t
clib_error_t * vl_sock_api_send_fd_msg(int socket_fd, int fds[], int n_fds)
void vl_socket_process_msg(struct clib_file *uf, struct vl_api_registration_ *rp, i8 *input_v)
void socksvr_add_pending_output(struct clib_file *uf, struct vl_api_registration_ *cf, u8 *buffer, uword buffer_bytes)