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

Go to the source code of this file.

Data Structures

struct  _ub_req_s
 
struct  _ub_resp_s
 

Functions

 M0_BASSERT (offsetof(struct _ub_req_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _ub_resp_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct ub_req)==24U)
 
 M0_BASSERT (sizeof((struct ub_req *) 0) ->uq_seqn==8U)
 
 M0_BASSERT (offsetof(struct ub_req, uq_seqn)==0U)
 
 M0_BASSERT (offsetof(struct ub_req, uq_data)==8U)
 
 M0_BASSERT (sizeof(struct ub_resp)==32U)
 
 M0_BASSERT (sizeof((struct ub_resp *) 0) ->ur_rc==4U)
 
 M0_BASSERT (offsetof(struct ub_resp, ur_rc)==0U)
 
 M0_BASSERT (offsetof(struct ub_resp, ur_seqn)==8U)
 
 M0_BASSERT (offsetof(struct ub_resp, ur_data)==16U)
 
M0_INTERNAL void m0_xc_ub_req_struct_init (void)
 
M0_INTERNAL void m0_xc_ub_resp_struct_init (void)
 
M0_INTERNAL void m0_xc_rpc_ub_fops_init (void)
 
M0_INTERNAL void m0_xc_rpc_ub_fops_fini (void)
 

Variables

struct m0_xcode_typeub_req_xc = &_ub_req._type
 
struct m0_xcode_typeub_resp_xc = &_ub_resp._type
 
static struct _ub_req_s _ub_req
 
static struct _ub_resp_s _ub_resp
 

Function Documentation

◆ M0_BASSERT() [1/11]

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

◆ M0_BASSERT() [2/11]

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

◆ M0_BASSERT() [3/11]

M0_BASSERT ( sizeof(struct ub_req = =24U)

◆ M0_BASSERT() [4/11]

M0_BASSERT ( sizeof((struct ub_req *) 0) ->  uq_seqn = =8U)

◆ M0_BASSERT() [5/11]

M0_BASSERT ( offsetof(struct ub_req, uq_seqn = =0U)

◆ M0_BASSERT() [6/11]

M0_BASSERT ( offsetof(struct ub_req, uq_data = =8U)

◆ M0_BASSERT() [7/11]

M0_BASSERT ( sizeof(struct ub_resp = =32U)

◆ M0_BASSERT() [8/11]

M0_BASSERT ( sizeof((struct ub_resp *) 0) ->  ur_rc = =4U)

◆ M0_BASSERT() [9/11]

M0_BASSERT ( offsetof(struct ub_resp, ur_rc = =0U)

◆ M0_BASSERT() [10/11]

M0_BASSERT ( offsetof(struct ub_resp, ur_seqn = =8U)

◆ M0_BASSERT() [11/11]

M0_BASSERT ( offsetof(struct ub_resp, ur_data = =16U)

◆ m0_xc_rpc_ub_fops_fini()

M0_INTERNAL void m0_xc_rpc_ub_fops_fini ( void  )

Definition at line 157 of file fops_xc.c.

Here is the caller graph for this function:

◆ m0_xc_rpc_ub_fops_init()

M0_INTERNAL void m0_xc_rpc_ub_fops_init ( void  )

Definition at line 151 of file fops_xc.c.

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

◆ m0_xc_ub_req_struct_init()

M0_INTERNAL void m0_xc_ub_req_struct_init ( void  )

Definition at line 66 of file fops_xc.c.

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

◆ m0_xc_ub_resp_struct_init()

M0_INTERNAL void m0_xc_ub_resp_struct_init ( void  )

Definition at line 101 of file fops_xc.c.

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

Variable Documentation

◆ _ub_req

struct _ub_req_s _ub_req
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "ub_req",
.xct_sizeof = sizeof (struct ub_req),
.xct_nr = 2,
}
}
Definition: fops.h:32

◆ _ub_resp

struct _ub_resp_s _ub_resp
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "ub_resp",
.xct_sizeof = sizeof (struct ub_resp),
.xct_nr = 3,
}
}
Definition: fops.h:38

◆ ub_req_xc

struct m0_xcode_type * ub_req_xc = &_ub_req._type

Definition at line 10 of file fops_xc.c.

◆ ub_resp_xc

struct m0_xcode_type * ub_resp_xc = &_ub_resp._type

Definition at line 11 of file fops_xc.c.