Motr  M0
onwire_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "rpc/onwire.h"
#include "rpc/onwire_xc.h"
Include dependency graph for onwire_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_rpc_packet_onwire_header_s
 
struct  _m0_rpc_packet_onwire_footer_s
 
struct  _m0_rpc_item_header1_s
 
struct  _m0_rpc_item_header2_s
 
struct  _m0_rpc_item_footer_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_rpc_packet_onwire_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_rpc_packet_onwire_footer_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_rpc_item_header1_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_rpc_item_header2_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_rpc_item_footer_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_rpc_packet_onwire_header)==32U)
 
 M0_BASSERT (sizeof((struct m0_rpc_packet_onwire_header *) 0) ->poh_header==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_packet_onwire_header, poh_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_rpc_packet_onwire_header, poh_version)==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_packet_onwire_header, poh_nr_items)==20U)
 
 M0_BASSERT (offsetof(struct m0_rpc_packet_onwire_header, poh_magic)==24U)
 
 M0_BASSERT (sizeof(struct m0_rpc_packet_onwire_footer)==16U)
 
 M0_BASSERT (sizeof((struct m0_rpc_packet_onwire_footer *) 0) ->pof_footer==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_packet_onwire_footer, pof_footer)==0U)
 
 M0_BASSERT (sizeof(struct m0_rpc_item_header1)==40U)
 
 M0_BASSERT (sizeof((struct m0_rpc_item_header1 *) 0) ->ioh_header==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header1, ioh_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header1, ioh_opcode)==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header1, ioh_flags)==20U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header1, ioh_ha_epoch)==24U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header1, ioh_magic)==32U)
 
 M0_BASSERT (sizeof(struct m0_rpc_item_header2)==64U)
 
 M0_BASSERT (sizeof((struct m0_rpc_item_header2 *) 0) ->osr_uuid==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_uuid)==0U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_sender_id)==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_session_id)==24U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_session_xid_min)==32U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_xid)==40U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_header2, osr_cookie)==48U)
 
 M0_BASSERT (sizeof(struct m0_rpc_item_footer)==16U)
 
 M0_BASSERT (sizeof((struct m0_rpc_item_footer *) 0) ->iof_footer==16U)
 
 M0_BASSERT (offsetof(struct m0_rpc_item_footer, iof_footer)==0U)
 
M0_INTERNAL void m0_xc_m0_rpc_packet_onwire_header_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_rpc_packet_onwire_footer_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_rpc_item_header1_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_rpc_item_header2_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_rpc_item_footer_struct_init (void)
 
M0_INTERNAL void m0_xc_rpc_onwire_init (void)
 
M0_INTERNAL void m0_xc_rpc_onwire_fini (void)
 

Variables

struct m0_xcode_typem0_rpc_packet_onwire_header_xc = &_m0_rpc_packet_onwire_header._type
 
struct m0_xcode_typem0_rpc_packet_onwire_footer_xc = &_m0_rpc_packet_onwire_footer._type
 
struct m0_xcode_typem0_rpc_item_header1_xc = &_m0_rpc_item_header1._type
 
struct m0_xcode_typem0_rpc_item_header2_xc = &_m0_rpc_item_header2._type
 
struct m0_xcode_typem0_rpc_item_footer_xc = &_m0_rpc_item_footer._type
 
static struct _m0_rpc_packet_onwire_header_s _m0_rpc_packet_onwire_header
 
static struct _m0_rpc_packet_onwire_footer_s _m0_rpc_packet_onwire_footer
 
static struct _m0_rpc_item_header1_s _m0_rpc_item_header1
 
static struct _m0_rpc_item_header2_s _m0_rpc_item_header2
 
static struct _m0_rpc_item_footer_s _m0_rpc_item_footer
 

Function Documentation

◆ M0_BASSERT() [1/32]

M0_BASSERT ( offsetof(struct _m0_rpc_packet_onwire_header_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [2/32]

M0_BASSERT ( offsetof(struct _m0_rpc_packet_onwire_footer_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [3/32]

M0_BASSERT ( offsetof(struct _m0_rpc_item_header1_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [4/32]

M0_BASSERT ( offsetof(struct _m0_rpc_item_header2_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [5/32]

M0_BASSERT ( offsetof(struct _m0_rpc_item_footer_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [6/32]

M0_BASSERT ( sizeof(struct m0_rpc_packet_onwire_header = =32U)

◆ M0_BASSERT() [7/32]

M0_BASSERT ( sizeof((struct m0_rpc_packet_onwire_header *) 0) ->  poh_header = =16U)

◆ M0_BASSERT() [8/32]

M0_BASSERT ( offsetof(struct m0_rpc_packet_onwire_header, poh_header = =0U)

◆ M0_BASSERT() [9/32]

M0_BASSERT ( offsetof(struct m0_rpc_packet_onwire_header, poh_version = =16U)

◆ M0_BASSERT() [10/32]

M0_BASSERT ( offsetof(struct m0_rpc_packet_onwire_header, poh_nr_items = =20U)

◆ M0_BASSERT() [11/32]

M0_BASSERT ( offsetof(struct m0_rpc_packet_onwire_header, poh_magic = =24U)

◆ M0_BASSERT() [12/32]

M0_BASSERT ( sizeof(struct m0_rpc_packet_onwire_footer = =16U)

◆ M0_BASSERT() [13/32]

M0_BASSERT ( sizeof((struct m0_rpc_packet_onwire_footer *) 0) ->  pof_footer = =16U)

◆ M0_BASSERT() [14/32]

M0_BASSERT ( offsetof(struct m0_rpc_packet_onwire_footer, pof_footer = =0U)

◆ M0_BASSERT() [15/32]

M0_BASSERT ( sizeof(struct m0_rpc_item_header1 = =40U)

◆ M0_BASSERT() [16/32]

M0_BASSERT ( sizeof((struct m0_rpc_item_header1 *) 0) ->  ioh_header = =16U)

◆ M0_BASSERT() [17/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header1, ioh_header = =0U)

◆ M0_BASSERT() [18/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header1, ioh_opcode = =16U)

◆ M0_BASSERT() [19/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header1, ioh_flags = =20U)

◆ M0_BASSERT() [20/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header1, ioh_ha_epoch = =24U)

◆ M0_BASSERT() [21/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header1, ioh_magic = =32U)

◆ M0_BASSERT() [22/32]

M0_BASSERT ( sizeof(struct m0_rpc_item_header2 = =64U)

◆ M0_BASSERT() [23/32]

M0_BASSERT ( sizeof((struct m0_rpc_item_header2 *) 0) ->  osr_uuid = =16U)

◆ M0_BASSERT() [24/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_uuid = =0U)

◆ M0_BASSERT() [25/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_sender_id = =16U)

◆ M0_BASSERT() [26/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_session_id = =24U)

◆ M0_BASSERT() [27/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_session_xid_min = =32U)

◆ M0_BASSERT() [28/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_xid = =40U)

◆ M0_BASSERT() [29/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_header2, osr_cookie = =48U)

◆ M0_BASSERT() [30/32]

M0_BASSERT ( sizeof(struct m0_rpc_item_footer = =16U)

◆ M0_BASSERT() [31/32]

M0_BASSERT ( sizeof((struct m0_rpc_item_footer *) 0) ->  iof_footer = =16U)

◆ M0_BASSERT() [32/32]

M0_BASSERT ( offsetof(struct m0_rpc_item_footer, iof_footer = =0U)

◆ m0_xc_m0_rpc_item_footer_struct_init()

M0_INTERNAL void m0_xc_m0_rpc_item_footer_struct_init ( void  )

Definition at line 413 of file onwire_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_rpc_item_header1_struct_init()

M0_INTERNAL void m0_xc_m0_rpc_item_header1_struct_init ( void  )

Definition at line 238 of file onwire_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_rpc_item_header2_struct_init()

M0_INTERNAL void m0_xc_m0_rpc_item_header2_struct_init ( void  )

Definition at line 318 of file onwire_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_rpc_packet_onwire_footer_struct_init()

M0_INTERNAL void m0_xc_m0_rpc_packet_onwire_footer_struct_init ( void  )

Definition at line 218 of file onwire_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_rpc_packet_onwire_header_struct_init()

M0_INTERNAL void m0_xc_m0_rpc_packet_onwire_header_struct_init ( void  )

Definition at line 153 of file onwire_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_rpc_onwire_fini()

M0_INTERNAL void m0_xc_rpc_onwire_fini ( void  )

Definition at line 442 of file onwire_xc.c.

◆ m0_xc_rpc_onwire_init()

M0_INTERNAL void m0_xc_rpc_onwire_init ( void  )

Definition at line 433 of file onwire_xc.c.

Here is the call graph for this function:

Variable Documentation

◆ _m0_rpc_item_footer

struct _m0_rpc_item_footer_s _m0_rpc_item_footer
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_rpc_item_footer",
.xct_sizeof = sizeof (struct m0_rpc_item_footer),
.xct_nr = 1,
}
}

◆ _m0_rpc_item_header1

struct _m0_rpc_item_header1_s _m0_rpc_item_header1
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_rpc_item_header1",
.xct_sizeof = sizeof (struct m0_rpc_item_header1),
.xct_nr = 5,
}
}

◆ _m0_rpc_item_header2

struct _m0_rpc_item_header2_s _m0_rpc_item_header2
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_rpc_item_header2",
.xct_sizeof = sizeof (struct m0_rpc_item_header2),
.xct_nr = 6,
}
}

◆ _m0_rpc_packet_onwire_footer

struct _m0_rpc_packet_onwire_footer_s _m0_rpc_packet_onwire_footer
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_rpc_packet_onwire_footer",
.xct_sizeof = sizeof (struct m0_rpc_packet_onwire_footer),
.xct_nr = 1,
}
}

◆ _m0_rpc_packet_onwire_header

struct _m0_rpc_packet_onwire_header_s _m0_rpc_packet_onwire_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_rpc_packet_onwire_header",
.xct_sizeof = sizeof (struct m0_rpc_packet_onwire_header),
.xct_nr = 4,
}
}

◆ m0_rpc_item_footer_xc

struct m0_xcode_type * m0_rpc_item_footer_xc = &_m0_rpc_item_footer._type

Definition at line 14 of file onwire_xc.c.

◆ m0_rpc_item_header1_xc

struct m0_xcode_type * m0_rpc_item_header1_xc = &_m0_rpc_item_header1._type

Definition at line 12 of file onwire_xc.c.

◆ m0_rpc_item_header2_xc

struct m0_xcode_type * m0_rpc_item_header2_xc = &_m0_rpc_item_header2._type

Definition at line 13 of file onwire_xc.c.

◆ m0_rpc_packet_onwire_footer_xc

struct m0_xcode_type * m0_rpc_packet_onwire_footer_xc = &_m0_rpc_packet_onwire_footer._type

Definition at line 11 of file onwire_xc.c.

◆ m0_rpc_packet_onwire_header_xc

struct m0_xcode_type * m0_rpc_packet_onwire_header_xc = &_m0_rpc_packet_onwire_header._type

Definition at line 10 of file onwire_xc.c.