Motr  M0
wire_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "fop/wire.h"
#include "fop/wire_xc.h"
Include dependency graph for wire_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_fop_fol_frag_s
 
struct  _m0_fop_str_s
 
struct  _m0_fop_generic_reply_s
 
struct  _m0_be_tx_remid_s
 
struct  _m0_fop_mod_rep_s
 

Functions

int m0_fop_xc_type (const struct m0_xcode_obj *par, const struct m0_xcode_type **out)
 
int m0_fop_rep_xc_type (const struct m0_xcode_obj *par, const struct m0_xcode_type **out)
 
 M0_BASSERT (offsetof(struct _m0_fop_fol_frag_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_str_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_generic_reply_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_tx_remid_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_mod_rep_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_fop_fol_frag)==24U)
 
 M0_BASSERT (sizeof((struct m0_fop_fol_frag *) 0) ->ffrp_fop_code==4U)
 
 M0_BASSERT (offsetof(struct m0_fop_fol_frag, ffrp_fop_code)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_fol_frag, ffrp_rep_code)==4U)
 
 M0_BASSERT (offsetof(struct m0_fop_fol_frag, ffrp_fop)==8U)
 
 M0_BASSERT (offsetof(struct m0_fop_fol_frag, ffrp_rep)==16U)
 
 M0_BASSERT (sizeof(struct m0_fop_str)==16U)
 
 M0_BASSERT (sizeof((struct m0_fop_str *) 0) ->s_len==4U)
 
 M0_BASSERT (offsetof(struct m0_fop_str, s_len)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_str, s_buf)==8U)
 
 M0_BASSERT (sizeof(struct m0_fop_generic_reply)==24U)
 
 M0_BASSERT (sizeof((struct m0_fop_generic_reply *) 0) ->gr_rc==4U)
 
 M0_BASSERT (offsetof(struct m0_fop_generic_reply, gr_rc)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_generic_reply, gr_msg)==8U)
 
 M0_BASSERT (sizeof(struct m0_be_tx_remid)==16U)
 
 M0_BASSERT (sizeof((struct m0_be_tx_remid *) 0) ->tri_txid==8U)
 
 M0_BASSERT (offsetof(struct m0_be_tx_remid, tri_txid)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_tx_remid, tri_locality)==8U)
 
 M0_BASSERT (sizeof(struct m0_fop_mod_rep)==16U)
 
 M0_BASSERT (sizeof((struct m0_fop_mod_rep *) 0) ->fmr_remid==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_mod_rep, fmr_remid)==0U)
 
M0_INTERNAL void m0_xc_m0_fop_fol_frag_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_str_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_generic_reply_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_tx_remid_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_mod_rep_struct_init (void)
 
M0_INTERNAL void m0_xc_fop_wire_init (void)
 
M0_INTERNAL void m0_xc_fop_wire_fini (void)
 

Variables

struct m0_xcode_typem0_fop_fol_frag_xc = &_m0_fop_fol_frag._type
 
struct m0_xcode_typem0_fop_str_xc = &_m0_fop_str._type
 
struct m0_xcode_typem0_fop_generic_reply_xc = &_m0_fop_generic_reply._type
 
struct m0_xcode_typem0_be_tx_remid_xc = &_m0_be_tx_remid._type
 
struct m0_xcode_typem0_fop_mod_rep_xc = &_m0_fop_mod_rep._type
 
static struct _m0_fop_fol_frag_s _m0_fop_fol_frag
 
static struct _m0_fop_str_s _m0_fop_str
 
static struct _m0_fop_generic_reply_s _m0_fop_generic_reply
 
static struct _m0_be_tx_remid_s _m0_be_tx_remid
 
static struct _m0_fop_mod_rep_s _m0_fop_mod_rep
 

Function Documentation

◆ M0_BASSERT() [1/26]

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

◆ M0_BASSERT() [2/26]

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

◆ M0_BASSERT() [3/26]

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

◆ M0_BASSERT() [4/26]

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

◆ M0_BASSERT() [5/26]

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

◆ M0_BASSERT() [6/26]

M0_BASSERT ( sizeof(struct m0_fop_fol_frag = =24U)

◆ M0_BASSERT() [7/26]

M0_BASSERT ( sizeof((struct m0_fop_fol_frag *) 0) ->  ffrp_fop_code = =4U)

◆ M0_BASSERT() [8/26]

M0_BASSERT ( offsetof(struct m0_fop_fol_frag, ffrp_fop_code)  = =0U)

◆ M0_BASSERT() [9/26]

M0_BASSERT ( offsetof(struct m0_fop_fol_frag, ffrp_rep_code)  = =4U)

◆ M0_BASSERT() [10/26]

M0_BASSERT ( offsetof(struct m0_fop_fol_frag, ffrp_fop)  = =8U)

◆ M0_BASSERT() [11/26]

M0_BASSERT ( offsetof(struct m0_fop_fol_frag, ffrp_rep)  = =16U)

◆ M0_BASSERT() [12/26]

M0_BASSERT ( sizeof(struct m0_fop_str = =16U)

◆ M0_BASSERT() [13/26]

M0_BASSERT ( sizeof((struct m0_fop_str *) 0) ->  s_len = =4U)

◆ M0_BASSERT() [14/26]

M0_BASSERT ( offsetof(struct m0_fop_str, s_len = =0U)

◆ M0_BASSERT() [15/26]

M0_BASSERT ( offsetof(struct m0_fop_str, s_buf = =8U)

◆ M0_BASSERT() [16/26]

M0_BASSERT ( sizeof(struct m0_fop_generic_reply = =24U)

◆ M0_BASSERT() [17/26]

M0_BASSERT ( sizeof((struct m0_fop_generic_reply *) 0) ->  gr_rc = =4U)

◆ M0_BASSERT() [18/26]

M0_BASSERT ( offsetof(struct m0_fop_generic_reply, gr_rc = =0U)

◆ M0_BASSERT() [19/26]

M0_BASSERT ( offsetof(struct m0_fop_generic_reply, gr_msg = =8U)

◆ M0_BASSERT() [20/26]

M0_BASSERT ( sizeof(struct m0_be_tx_remid = =16U)

◆ M0_BASSERT() [21/26]

M0_BASSERT ( sizeof((struct m0_be_tx_remid *) 0) ->  tri_txid = =8U)

◆ M0_BASSERT() [22/26]

M0_BASSERT ( offsetof(struct m0_be_tx_remid, tri_txid = =0U)

◆ M0_BASSERT() [23/26]

M0_BASSERT ( offsetof(struct m0_be_tx_remid, tri_locality = =8U)

◆ M0_BASSERT() [24/26]

M0_BASSERT ( sizeof(struct m0_fop_mod_rep = =16U)

◆ M0_BASSERT() [25/26]

M0_BASSERT ( sizeof((struct m0_fop_mod_rep *) 0) ->  fmr_remid = =16U)

◆ M0_BASSERT() [26/26]

M0_BASSERT ( offsetof(struct m0_fop_mod_rep, fmr_remid = =0U)

◆ m0_xc_fop_wire_fini()

M0_INTERNAL void m0_xc_fop_wire_fini ( void  )

Definition at line 344 of file wire_xc.c.

◆ m0_xc_fop_wire_init()

M0_INTERNAL void m0_xc_fop_wire_init ( void  )

Definition at line 335 of file wire_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_be_tx_remid_struct_init()

M0_INTERNAL void m0_xc_m0_be_tx_remid_struct_init ( void  )

Definition at line 280 of file wire_xc.c.

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

◆ m0_xc_m0_fop_fol_frag_struct_init()

M0_INTERNAL void m0_xc_m0_fop_fol_frag_struct_init ( void  )

Definition at line 145 of file wire_xc.c.

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

◆ m0_xc_m0_fop_generic_reply_struct_init()

M0_INTERNAL void m0_xc_m0_fop_generic_reply_struct_init ( void  )

Definition at line 245 of file wire_xc.c.

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

◆ m0_xc_m0_fop_mod_rep_struct_init()

M0_INTERNAL void m0_xc_m0_fop_mod_rep_struct_init ( void  )

Definition at line 315 of file wire_xc.c.

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

◆ m0_xc_m0_fop_str_struct_init()

M0_INTERNAL void m0_xc_m0_fop_str_struct_init ( void  )

Definition at line 210 of file wire_xc.c.

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

Variable Documentation

◆ _m0_be_tx_remid

struct _m0_be_tx_remid_s _m0_be_tx_remid
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_tx_remid",
.xct_sizeof = sizeof (struct m0_be_tx_remid),
.xct_nr = 2,
}
}

◆ _m0_fop_fol_frag

struct _m0_fop_fol_frag_s _m0_fop_fol_frag
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_fol_frag",
.xct_sizeof = sizeof (struct m0_fop_fol_frag),
.xct_nr = 4,
.xct_flags = 0,
}
}

◆ _m0_fop_generic_reply

struct _m0_fop_generic_reply_s _m0_fop_generic_reply
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_generic_reply",
.xct_sizeof = sizeof (struct m0_fop_generic_reply),
.xct_nr = 2,
}
}

◆ _m0_fop_mod_rep

struct _m0_fop_mod_rep_s _m0_fop_mod_rep
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_mod_rep",
.xct_sizeof = sizeof (struct m0_fop_mod_rep),
.xct_nr = 1,
}
}

◆ _m0_fop_str

struct _m0_fop_str_s _m0_fop_str
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_fop_str",
.xct_sizeof = sizeof (struct m0_fop_str),
.xct_nr = 2,
}
}

◆ m0_be_tx_remid_xc

struct m0_xcode_type * m0_be_tx_remid_xc = &_m0_be_tx_remid._type

Definition at line 13 of file wire_xc.c.

◆ m0_fop_fol_frag_xc

struct m0_xcode_type * m0_fop_fol_frag_xc = &_m0_fop_fol_frag._type

Definition at line 10 of file wire_xc.c.

◆ m0_fop_generic_reply_xc

struct m0_xcode_type * m0_fop_generic_reply_xc = &_m0_fop_generic_reply._type

Definition at line 12 of file wire_xc.c.

◆ m0_fop_mod_rep_xc

struct m0_xcode_type * m0_fop_mod_rep_xc = &_m0_fop_mod_rep._type

Definition at line 14 of file wire_xc.c.

◆ m0_fop_str_xc

struct m0_xcode_type * m0_fop_str_xc = &_m0_fop_str._type

Definition at line 11 of file wire_xc.c.