Motr  M0
m0_rpc_chan Struct Reference

#include <rpc_machine_internal.h>

Collaboration diagram for m0_rpc_chan:
Collaboration graph

Data Fields

struct m0_tlink rc_linkage
 
struct m0_ref rc_ref
 
struct m0_rpc_frm rc_frm
 
struct m0_net_end_pointrc_destep
 
struct m0_rpc_machinerc_rpc_machine
 
uint64_t rc_magic
 

Detailed Description

Struct m0_rpc_chan provides information about a target network endpoint. An rpc machine (struct m0_rpc_machine) contains list of m0_rpc_chan structures targeting different net endpoints. Rationale A physical node can have multiple endpoints associated with it. And multiple services can share endpoints for transport. The rule of thumb is to use one transfer machine per endpoint. So to make sure that services using same endpoint, use the same transfer machine, this structure has been introduced. Struct m0_rpc_conn is used for a particular service and now it points to a struct m0_rpc_chan to identify the transfer machine it is working with.

Definition at line 58 of file rpc_machine_internal.h.

Field Documentation

◆ rc_destep

struct m0_net_end_point* rc_destep

Destination end point to which rpcs will be sent.

Definition at line 68 of file rpc_machine_internal.h.

◆ rc_frm

struct m0_rpc_frm rc_frm

Formation state machine associated with chan.

Definition at line 66 of file rpc_machine_internal.h.

◆ rc_linkage

struct m0_tlink rc_linkage

Link in m0_rpc_machine::rm_chans list. List descriptor: rpc_chan

Definition at line 62 of file rpc_machine_internal.h.

◆ rc_magic

uint64_t rc_magic

M0_RPC_CHAN_MAGIC

Definition at line 72 of file rpc_machine_internal.h.

◆ rc_ref

struct m0_ref rc_ref

Number of m0_rpc_conn structures using this transfer machine.

Definition at line 64 of file rpc_machine_internal.h.

◆ rc_rpc_machine

struct m0_rpc_machine* rc_rpc_machine

The rpc_machine, this chan structure is associated with.

Definition at line 70 of file rpc_machine_internal.h.


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