Motr  M0
rpc_buffer Struct Reference
Collaboration diagram for rpc_buffer:
Collaboration graph

Data Fields

struct m0_net_buffer rb_netbuf
 
struct m0_rpc_packetrb_packet
 
uint64_t rb_magic
 

Detailed Description

RPC layer's wrapper on m0_net_buffer. rpc_buffer carries one packet at a time.

NOTE: rpc_buffer and packet are kept separate, even though their lifetime is same at this point. A buffer can carry only one packet at some point. There is a limit on number of packets that can be "in-flight". In near future we might want to keep per m0_rpc_chan buffer pool with few pre-allocated buffers. In that case same buffer will carry many packets during its lifetime (but only one at a time).

Definition at line 83 of file frmops.c.

Field Documentation

◆ rb_magic

uint64_t rb_magic

see M0_RPC_BUF_MAGIC

Definition at line 87 of file frmops.c.

◆ rb_netbuf

struct m0_net_buffer rb_netbuf

Definition at line 84 of file frmops.c.

◆ rb_packet

struct m0_rpc_packet* rb_packet

Definition at line 85 of file frmops.c.


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