Motr  M0
m0_net_test_cmd Struct Reference

#include <commands.h>

Collaboration diagram for m0_net_test_cmd:
Collaboration graph

Data Fields

enum m0_net_test_cmd_type ntc_type
 
union {
   struct m0_net_test_cmd_done   ntc_done
 
   struct m0_net_test_cmd_init   ntc_init
 
   struct m0_net_test_cmd_status_data   ntc_status_data
 
}; 
 
ssize_t ntc_ep_index
 
size_t ntc_buf_index
 

Detailed Description

Command structure to exchange between console and clients or servers. WARNING: be sure to change cmd_serialize() after changes to this structure.

Note
m0_net_test_cmd.ntc_ep_index and m0_net_test_cmd.ntc_buf_index will not be sent/received over the network.

Definition at line 202 of file commands.h.

Field Documentation

◆ @409

union { ... }

command structures

◆ ntc_buf_index

size_t ntc_buf_index

buffer index. set in m0_net_test_commands_recv()

Definition at line 220 of file commands.h.

◆ ntc_done

struct m0_net_test_cmd_done ntc_done

Definition at line 207 of file commands.h.

◆ ntc_ep_index

ssize_t ntc_ep_index

Endpoint index in commands context. Set in m0_net_test_commands_recv(). Used in m0_net_test_commands_send(). Will be set to -1 in m0_net_test_commands_recv() if endpoint isn't present in commands context endpoints list.

Definition at line 218 of file commands.h.

◆ ntc_init

struct m0_net_test_cmd_init ntc_init

Definition at line 208 of file commands.h.

◆ ntc_status_data

struct m0_net_test_cmd_status_data ntc_status_data

Definition at line 209 of file commands.h.

◆ ntc_type

enum m0_net_test_cmd_type ntc_type

command type

Definition at line 204 of file commands.h.


The documentation for this struct was generated from the following file: