Motr  M0
fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from fdmi/fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "fdmi/fops.h"
8 #include "fdmi/fops_xc.h"
9 
15 
16 static struct _m0_fdmi_flt_id_arr_s {
20  ._type = {
22  .xct_name = "m0_fdmi_flt_id_arr",
23  .xct_sizeof = sizeof (struct m0_fdmi_flt_id_arr),
24  .xct_nr = 2,
25  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
26  }
27 };
28 
30 M0_BASSERT(offsetof(struct _m0_fdmi_flt_id_arr_s, _child[0]) ==
31  offsetof(struct m0_xcode_type, xct_child[0]));
32 
33 static struct _m0_fop_fdmi_record_s {
37  ._type = {
39  .xct_name = "m0_fop_fdmi_record",
40  .xct_sizeof = sizeof (struct m0_fop_fdmi_record),
41  .xct_nr = 4,
42  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
43  }
44 };
45 
47 M0_BASSERT(offsetof(struct _m0_fop_fdmi_record_s, _child[0]) ==
48  offsetof(struct m0_xcode_type, xct_child[0]));
49 
54  ._type = {
56  .xct_name = "m0_fop_fdmi_record_reply",
57  .xct_sizeof = sizeof (struct m0_fop_fdmi_record_reply),
58  .xct_nr = 1,
59  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
60  }
61 };
62 
65  offsetof(struct m0_xcode_type, xct_child[0]));
66 
71  ._type = {
73  .xct_name = "m0_fop_fdmi_rec_release",
74  .xct_sizeof = sizeof (struct m0_fop_fdmi_rec_release),
75  .xct_nr = 2,
76  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
77  }
78 };
79 
82  offsetof(struct m0_xcode_type, xct_child[0]));
83 
88  ._type = {
90  .xct_name = "m0_fop_fdmi_rec_release_reply",
91  .xct_sizeof = sizeof (struct m0_fop_fdmi_rec_release_reply),
92  .xct_nr = 1,
93  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
94  }
95 };
96 
99  offsetof(struct m0_xcode_type, xct_child[0]));
100 
101 
102 M0_BASSERT(sizeof(struct m0_fdmi_flt_id_arr) == 16U);
103 
104 M0_BASSERT(sizeof ((struct m0_fdmi_flt_id_arr *)0)->fmf_count == 4U);
106 M0_BASSERT(sizeof ((struct m0_fdmi_flt_id_arr *)0)->fmf_flt_id == 8U);
108 
109 M0_BASSERT(sizeof(struct m0_fop_fdmi_record) == 56U);
110 
111 M0_BASSERT(sizeof ((struct m0_fop_fdmi_record *)0)->fr_rec_id == 16U);
113 M0_BASSERT(sizeof ((struct m0_fop_fdmi_record *)0)->fr_rec_type == 4U);
115 M0_BASSERT(sizeof ((struct m0_fop_fdmi_record *)0)->fr_payload == 16U);
117 M0_BASSERT(sizeof ((struct m0_fop_fdmi_record *)0)->fr_matched_flts == 16U);
119 
120 M0_BASSERT(sizeof(struct m0_fop_fdmi_record_reply) == 4U);
121 
122 M0_BASSERT(sizeof ((struct m0_fop_fdmi_record_reply *)0)->frn_frt == 4U);
124 
125 M0_BASSERT(sizeof(struct m0_fop_fdmi_rec_release) == 24U);
126 
127 M0_BASSERT(sizeof ((struct m0_fop_fdmi_rec_release *)0)->frr_frid == 16U);
129 M0_BASSERT(sizeof ((struct m0_fop_fdmi_rec_release *)0)->frr_frt == 4U);
131 
132 M0_BASSERT(sizeof(struct m0_fop_fdmi_rec_release_reply) == 4U);
133 
134 M0_BASSERT(sizeof ((struct m0_fop_fdmi_rec_release_reply *)0)->frrr_rc == 4U);
136 
137 
138 
140 {
142  .xf_name = "fmf_count",
143 
144  .xf_type = &M0_XT_U32,
145 
146  .xf_tag = 0,
147  .xf_opaque = NULL,
148  .xf_offset = offsetof(struct m0_fdmi_flt_id_arr, fmf_count),
149  .xf_read = NULL,
150  .xf_decor = {
152  }
153  };
154  m0_xc_u32_init();
155 
157  .xf_name = "fmf_flt_id",
158 
159  .xf_type = m0_fid_xc,
160 
161  .xf_tag = 0,
162  .xf_opaque = NULL,
163  .xf_offset = offsetof(struct m0_fdmi_flt_id_arr, fmf_flt_id),
164  .xf_read = NULL,
165  .xf_decor = {
167  }
168  };
170 
172 }
173 
175 {
177  .xf_name = "fr_rec_id",
178 
179  .xf_type = m0_uint128_xc,
180 
181  .xf_tag = 0,
182  .xf_opaque = NULL,
183  .xf_offset = offsetof(struct m0_fop_fdmi_record, fr_rec_id),
184  .xf_read = NULL,
185  .xf_decor = {
187  }
188  };
190 
192  .xf_name = "fr_rec_type",
193 
194  .xf_type = &M0_XT_U32,
195 
196  .xf_tag = 0,
197  .xf_opaque = NULL,
198  .xf_offset = offsetof(struct m0_fop_fdmi_record, fr_rec_type),
199  .xf_read = NULL,
200  .xf_decor = {
202  }
203  };
204  m0_xc_u32_init();
205 
207  .xf_name = "fr_payload",
208 
209  .xf_type = m0_buf_xc,
210 
211  .xf_tag = 0,
212  .xf_opaque = NULL,
213  .xf_offset = offsetof(struct m0_fop_fdmi_record, fr_payload),
214  .xf_read = NULL,
215  .xf_decor = {
217  }
218  };
220 
222  .xf_name = "fr_matched_flts",
223 
224  .xf_type = m0_fdmi_flt_id_arr_xc,
225 
226  .xf_tag = 0,
227  .xf_opaque = NULL,
228  .xf_offset = offsetof(struct m0_fop_fdmi_record, fr_matched_flts),
229  .xf_read = NULL,
230  .xf_decor = {
232  }
233  };
235 
237 }
238 
240 {
242  .xf_name = "frn_frt",
243 
244  .xf_type = &M0_XT_U32,
245 
246  .xf_tag = 0,
247  .xf_opaque = NULL,
248  .xf_offset = offsetof(struct m0_fop_fdmi_record_reply, frn_frt),
249  .xf_read = NULL,
250  .xf_decor = {
252  }
253  };
254  m0_xc_u32_init();
255 
257 }
258 
260 {
262  .xf_name = "frr_frid",
263 
264  .xf_type = m0_uint128_xc,
265 
266  .xf_tag = 0,
267  .xf_opaque = NULL,
268  .xf_offset = offsetof(struct m0_fop_fdmi_rec_release, frr_frid),
269  .xf_read = NULL,
270  .xf_decor = {
272  }
273  };
275 
277  .xf_name = "frr_frt",
278 
279  .xf_type = &M0_XT_U32,
280 
281  .xf_tag = 0,
282  .xf_opaque = NULL,
283  .xf_offset = offsetof(struct m0_fop_fdmi_rec_release, frr_frt),
284  .xf_read = NULL,
285  .xf_decor = {
287  }
288  };
289  m0_xc_u32_init();
290 
292 }
293 
295 {
297  .xf_name = "frrr_rc",
298 
299  .xf_type = &M0_XT_U32,
300 
301  .xf_tag = 0,
302  .xf_opaque = NULL,
303  .xf_offset = offsetof(struct m0_fop_fdmi_rec_release_reply, frrr_rc),
304  .xf_read = NULL,
305  .xf_decor = {
307  }
308  };
309  m0_xc_u32_init();
310 
312 }
313 
314 M0_INTERNAL void m0_xc_fdmi_fops_init(void)
315 {
321 }
322 
323 M0_INTERNAL void m0_xc_fdmi_fops_fini(void)
324 {
325 }
M0_BASSERT(offsetof(struct _m0_fdmi_flt_id_arr_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_type _type
Definition: fops_xc.c:17
int frrr_rc
Definition: fops.h:53
struct m0_xcode_type * m0_buf_xc
Definition: buf_xc.c:10
struct m0_fid * fmf_flt_id
Definition: fops.h:57
static struct _m0_fop_fdmi_record_reply_s _m0_fop_fdmi_record_reply
#define NULL
Definition: misc.h:38
struct m0_xcode_field _child[2]
Definition: fops_xc.c:69
struct m0_xcode_field _child[4]
Definition: fops_xc.c:35
struct m0_xcode_type * m0_fop_fdmi_rec_release_xc
Definition: fops_xc.c:13
struct m0_xcode_type * m0_uint128_xc
Definition: types_xc.c:10
m0_fdmi_rec_type_id_t frn_frt
Definition: fops.h:53
struct m0_xcode_type _type
Definition: fops_xc.c:85
struct m0_xcode_field _child[1]
Definition: fops_xc.c:86
uint32_t fmf_count
Definition: fops.h:54
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
static struct _m0_fop_fdmi_record_s _m0_fop_fdmi_record
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
M0_INTERNAL void m0_xc_m0_uint128_struct_init(void)
Definition: types_xc.c:39
M0_INTERNAL void m0_xc_fdmi_fops_fini(void)
Definition: fops_xc.c:323
struct m0_buf fr_payload
Definition: fops.h:60
struct m0_xcode_type * m0_fop_fdmi_record_xc
Definition: fops_xc.c:11
struct m0_fdmi_flt_id_arr fr_matched_flts
Definition: fops.h:63
M0_INTERNAL void m0_xc_m0_buf_struct_init(void)
Definition: buf_xc.c:64
struct m0_xcode_type _type
Definition: fops_xc.c:34
M0_INTERNAL void m0_xc_m0_fop_fdmi_record_struct_init(void)
Definition: fops_xc.c:174
static struct _m0_fop_fdmi_rec_release_reply_s _m0_fop_fdmi_rec_release_reply
uint32_t fr_rec_type
Definition: fops.h:57
static struct _m0_fop_fdmi_rec_release_s _m0_fop_fdmi_rec_release
struct m0_xcode_type * m0_fop_fdmi_record_reply_xc
Definition: fops_xc.c:12
struct m0_xcode_type _type
Definition: fops_xc.c:68
struct m0_xcode_type _type
Definition: fops_xc.c:51
M0_INTERNAL void m0_xc_m0_fop_fdmi_record_reply_struct_init(void)
Definition: fops_xc.c:239
m0_fdmi_rec_type_id_t frr_frt
Definition: fops.h:54
static struct _m0_fdmi_flt_id_arr_s _m0_fdmi_flt_id_arr
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
struct m0_uint128 fr_rec_id
Definition: fops.h:54
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_field _child[1]
Definition: fops_xc.c:52
M0_INTERNAL void m0_xc_m0_fop_fdmi_rec_release_reply_struct_init(void)
Definition: fops_xc.c:294
void m0_xc_u32_init(void)
Definition: xcode.c:900
M0_INTERNAL void m0_xc_m0_fop_fdmi_rec_release_struct_init(void)
Definition: fops_xc.c:259
M0_INTERNAL void m0_xc_fdmi_fops_init(void)
Definition: fops_xc.c:314
struct m0_uint128 frr_frid
Definition: fops.h:53
const char * xf_name
Definition: xcode.h:251
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
struct m0_xcode_type * m0_fop_fdmi_rec_release_reply_xc
Definition: fops_xc.c:14
M0_INTERNAL void m0_xc_m0_fdmi_flt_id_arr_struct_init(void)
Definition: fops_xc.c:139
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_field _child[2]
Definition: fops_xc.c:18
struct m0_xcode_type * m0_fdmi_flt_id_arr_xc
Definition: fops_xc.c:10