Motr  M0
onwire.h File Reference
#include "lib/types.h"
#include "lib/types_xc.h"
#include "lib/cookie.h"
#include "lib/cookie_xc.h"
#include "xcode/xcode_attr.h"
#include "format/format.h"
#include "format/format_xc.h"
Include dependency graph for onwire.h:

Go to the source code of this file.

Data Structures

struct  m0_rpc_packet_onwire_header
 
struct  m0_rpc_packet_onwire_footer
 
struct  m0_rpc_item_header1
 
struct  m0_rpc_item_header2
 
struct  m0_rpc_item_footer
 

Macros

#define __MOTR_RPC_ONWIRE_H__
 

Enumerations

enum  { M0_RPC_VERSION_1 = 1 }
 
enum  { M0_RPC_PACKET_FORMAT_VERSION_1 = 1, M0_RPC_PACKET_FORMAT_VERSION = M0_RPC_PACKET_FORMAT_VERSION_1, M0_RPC_ITEM_FORMAT_VERSION_1 = 1, M0_RPC_ITEM_FORMAT_VERSION = M0_RPC_ITEM_FORMAT_VERSION_1 }
 

Functions

struct m0_rpc_packet_onwire_header M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL int m0_rpc_item_header1_encdec (struct m0_rpc_item_header1 *ioh, struct m0_bufvec_cursor *cur, enum m0_xcode_what what)
 
M0_INTERNAL int m0_rpc_item_footer_encdec (struct m0_rpc_item_footer *iof, struct m0_bufvec_cursor *cur, enum m0_xcode_what what)
 

Variables

struct m0_format_header poh_header
 
uint32_t poh_version
 
uint32_t poh_nr_items
 
uint64_t poh_magic
 
struct m0_format_footer pof_footer
 
struct m0_format_header ioh_header
 
uint32_t ioh_opcode
 
uint32_t ioh_flags
 
uint64_t ioh_ha_epoch
 
uint64_t ioh_magic
 
struct m0_uint128 osr_uuid
 
uint64_t osr_sender_id
 
uint64_t osr_session_id
 
uint64_t osr_session_xid_min
 
uint64_t osr_xid
 
struct m0_cookie osr_cookie
 
struct m0_format_footer iof_footer
 

Macro Definition Documentation

◆ __MOTR_RPC_ONWIRE_H__

#define __MOTR_RPC_ONWIRE_H__

Definition at line 26 of file onwire.h.

Variable Documentation

◆ iof_footer

struct m0_format_footer iof_footer

Definition at line 59 of file onwire.h.

◆ ioh_flags

uint32_t ioh_flags

Item flags, taken from enum m0_rpc_item_flags.

Definition at line 63 of file onwire.h.

◆ ioh_ha_epoch

uint64_t ioh_ha_epoch

HA epoch transferred by the item.

Definition at line 65 of file onwire.h.

◆ ioh_header

struct m0_format_header ioh_header

Definition at line 59 of file onwire.h.

◆ ioh_magic

uint64_t ioh_magic

Definition at line 66 of file onwire.h.

◆ ioh_opcode

uint32_t ioh_opcode

Item opcode

Definition at line 61 of file onwire.h.

◆ osr_cookie

struct m0_cookie osr_cookie

Definition at line 70 of file onwire.h.

◆ osr_sender_id

uint64_t osr_sender_id

Definition at line 60 of file onwire.h.

◆ osr_session_id

uint64_t osr_session_id

Definition at line 61 of file onwire.h.

◆ osr_session_xid_min

uint64_t osr_session_xid_min

The sender will never send rpc items in this session with osr_xid which is less than this value.

See also
m0_rpc_session::s_xid_list, m0_rpc_item_xid_min_update().

Definition at line 68 of file onwire.h.

◆ osr_uuid

struct m0_uint128 osr_uuid

Definition at line 59 of file onwire.h.

◆ osr_xid

uint64_t osr_xid

Definition at line 69 of file onwire.h.

◆ pof_footer

struct m0_format_footer pof_footer

Definition at line 59 of file onwire.h.

◆ poh_header

struct m0_format_header poh_header

Definition at line 59 of file onwire.h.

◆ poh_magic

uint64_t poh_magic

Definition at line 64 of file onwire.h.

◆ poh_nr_items

uint32_t poh_nr_items

Number of RPC items in packet

Definition at line 63 of file onwire.h.

◆ poh_version

uint32_t poh_version

Definition at line 61 of file onwire.h.