Motr  M0
device_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from sss/device_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "sss/device_fops.h"
8 #include "sss/device_fops_xc.h"
9 
12 
13 static struct _m0_sss_device_fop_s {
17  ._type = {
19  .xct_name = "m0_sss_device_fop",
20  .xct_sizeof = sizeof (struct m0_sss_device_fop),
21  .xct_nr = 2,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
27 M0_BASSERT(offsetof(struct _m0_sss_device_fop_s, _child[0]) ==
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
30 static struct _m0_sss_device_fop_rep_s {
34  ._type = {
36  .xct_name = "m0_sss_device_fop_rep",
37  .xct_sizeof = sizeof (struct m0_sss_device_fop_rep),
38  .xct_nr = 2,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
44 M0_BASSERT(offsetof(struct _m0_sss_device_fop_rep_s, _child[0]) ==
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_sss_device_fop) == 24U);
49 
50 M0_BASSERT(sizeof ((struct m0_sss_device_fop *)0)->ssd_cmd == 4U);
52 M0_BASSERT(sizeof ((struct m0_sss_device_fop *)0)->ssd_fid == 16U);
54 
55 M0_BASSERT(sizeof(struct m0_sss_device_fop_rep) == 8U);
56 
57 M0_BASSERT(sizeof ((struct m0_sss_device_fop_rep *)0)->ssdp_rc == 4U);
59 M0_BASSERT(sizeof ((struct m0_sss_device_fop_rep *)0)->ssdp_ha_state == 4U);
61 
62 
63 
65 {
67  .xf_name = "ssd_cmd",
68 
69  .xf_type = &M0_XT_U32,
70 
71  .xf_tag = 0,
72  .xf_opaque = NULL,
73  .xf_offset = offsetof(struct m0_sss_device_fop, ssd_cmd),
74  .xf_read = NULL,
75  .xf_decor = {
77  }
78  };
80 
82  .xf_name = "ssd_fid",
83 
84  .xf_type = m0_fid_xc,
85 
86  .xf_tag = 0,
87  .xf_opaque = NULL,
88  .xf_offset = offsetof(struct m0_sss_device_fop, ssd_fid),
89  .xf_read = NULL,
90  .xf_decor = {
92  }
93  };
95 
97 }
98 
100 {
102  .xf_name = "ssdp_rc",
103 
104  .xf_type = &M0_XT_U32,
105 
106  .xf_tag = 0,
107  .xf_opaque = NULL,
108  .xf_offset = offsetof(struct m0_sss_device_fop_rep, ssdp_rc),
109  .xf_read = NULL,
110  .xf_decor = {
112  }
113  };
114  m0_xc_u32_init();
115 
117  .xf_name = "ssdp_ha_state",
118 
119  .xf_type = &M0_XT_U32,
120 
121  .xf_tag = 0,
122  .xf_opaque = NULL,
123  .xf_offset = offsetof(struct m0_sss_device_fop_rep, ssdp_ha_state),
124  .xf_read = NULL,
125  .xf_decor = {
127  }
128  };
129  m0_xc_u32_init();
130 
132 }
133 
134 M0_INTERNAL void m0_xc_sss_device_fops_init(void)
135 {
138 }
139 
140 M0_INTERNAL void m0_xc_sss_device_fops_fini(void)
141 {
142 }
#define NULL
Definition: misc.h:38
struct m0_xcode_type * m0_sss_device_fop_rep_xc
struct m0_fid ssd_fid
Definition: device_fops.h:138
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
uint32_t ssdp_ha_state
Definition: device_fops.h:140
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
M0_INTERNAL void m0_xc_m0_sss_device_fop_struct_init(void)
struct m0_xcode_field _child[2]
static struct _m0_sss_device_fop_rep_s _m0_sss_device_fop_rep
struct m0_xcode_field _child[2]
struct m0_xcode_type _type
M0_INTERNAL void m0_xc_sss_device_fops_init(void)
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
static struct _m0_sss_device_fop_s _m0_sss_device_fop
M0_INTERNAL void m0_xc_sss_device_fops_fini(void)
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
int32_t ssdp_rc
Definition: device_fops.h:135
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
M0_INTERNAL void m0_xc_m0_sss_device_fop_rep_struct_init(void)
struct m0_xcode_type _type
M0_BASSERT(offsetof(struct _m0_sss_device_fop_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
struct m0_xcode_type * m0_sss_device_fop_xc
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
#define offsetof(typ, memb)
Definition: misc.h:29
uint32_t ssd_cmd
Definition: device_fops.h:134