Motr
M0
|
#include <commands.h>
Data Fields | |
struct m0_net_test_network_ctx | ntcc_net |
struct m0_net_test_ringbuf | ntcc_rb |
size_t | ntcc_ep_nr |
struct m0_semaphore | ntcc_sem_send |
struct m0_semaphore | ntcc_sem_recv |
m0_net_test_commands_send_cb_t | ntcc_send_cb |
size_t | ntcc_send_nr |
struct m0_mutex | ntcc_send_mutex |
struct m0_net_test_cmd_buf_status * | ntcc_buf_status |
Commands context.
Definition at line 245 of file commands.h.
struct m0_net_test_cmd_buf_status* ntcc_buf_status |
Updated in message send/recv callbacks.
Definition at line 288 of file commands.h.
size_t ntcc_ep_nr |
number of commands in context
Definition at line 259 of file commands.h.
struct m0_net_test_network_ctx ntcc_net |
Network context for this command context. First ntcc_ep_nr ping buffers are used for commands sending, other ntcc_ep_nr * 2 ping buffers are used for commands receiving.
Definition at line 251 of file commands.h.
struct m0_net_test_ringbuf ntcc_rb |
Ring buffer for receive queue. m0_net_test_ringbuf_put() in message receive callback. m0_net_test_ringbuf_get() in m0_net_test_commands_recv().
Definition at line 257 of file commands.h.
struct m0_semaphore ntcc_sem_recv |
m0_semaphore_up() in message recv callback. m0_semaphore_timeddown() in m0_net_test_commands_recv().
Definition at line 275 of file commands.h.
struct m0_semaphore ntcc_sem_send |
m0_semaphore_up() in message send callback. m0_semaphore_down() in m0_net_test_commands_send_wait_all().
Definition at line 267 of file commands.h.
m0_net_test_commands_send_cb_t ntcc_send_cb |
Called from message send callback
Definition at line 277 of file commands.h.
struct m0_mutex ntcc_send_mutex |
Mutex for ntcc_send_nr protection
Definition at line 284 of file commands.h.
size_t ntcc_send_nr |
Number of sent commands. Resets to 0 on every call to m0_net_test_commands_wait_all().
Definition at line 282 of file commands.h.