Motr  M0
m0_net_bulk_mem_work_item Struct Reference

#include <mem_xprt.h>

Collaboration diagram for m0_net_bulk_mem_work_item:
Collaboration graph

Data Fields

struct m0_list_link xwi_link
 
enum m0_net_bulk_mem_work_opcode xwi_op
 
enum m0_net_bulk_mem_tm_state xwi_next_state
 
int32_t xwi_status
 
m0_bcount_t xwi_nbe_length
 
struct m0_net_end_pointxwi_nbe_ep
 

Detailed Description

This structure is used to describe a work item. The structures are queued on a list associated with the transfer machine. Usually the structures are embedded in the buffer private data, but they will be explicitly allocated for non-buffer related work items, and must be freed.

Definition at line 156 of file mem_xprt.h.

Field Documentation

◆ xwi_link

struct m0_list_link xwi_link

transfer machine work list link

Definition at line 158 of file mem_xprt.h.

◆ xwi_nbe_ep

struct m0_net_end_point* xwi_nbe_ep

End point in received buffers or in TM state change

Definition at line 179 of file mem_xprt.h.

◆ xwi_nbe_length

m0_bcount_t xwi_nbe_length

Length of buffer

Definition at line 176 of file mem_xprt.h.

◆ xwi_next_state

enum m0_net_bulk_mem_tm_state xwi_next_state

The next state value for a M0_NET_XOP_STATE_CHANGE opcode

Definition at line 166 of file mem_xprt.h.

◆ xwi_op

Work opcode. All opcodes other than M0_NET_XOP_STATE_CHANGE and M0_NET_XOP_NR relate to buffers.

Definition at line 163 of file mem_xprt.h.

◆ xwi_status

int32_t xwi_status

Status. Used for M0_NET_ERROR_CB, M0_NET_XOP_STATE_CHANGE, buffer operation completion status, and a generic way for derived classes to pass on status to the base worker function.

Definition at line 173 of file mem_xprt.h.


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