Motr  M0
pool_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from pool/pool_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "pool/pool_fops.h"
8 #include "pool/pool_fops_xc.h"
9 
17 
22  ._type = {
24  .xct_name = "m0_fop_poolmach_set_rep",
25  .xct_sizeof = sizeof (struct m0_fop_poolmach_set_rep),
26  .xct_nr = 1,
27  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
28  }
29 };
30 
33  offsetof(struct m0_xcode_type, xct_child[0]));
34 
39  ._type = {
41  .xct_name = "m0_fop_poolmach_dev_info",
42  .xct_sizeof = sizeof (struct m0_fop_poolmach_dev_info),
43  .xct_nr = 2,
44  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
45  }
46 };
47 
50  offsetof(struct m0_xcode_type, xct_child[0]));
51 
52 static struct _m0_fop_poolmach_dev_s {
56  ._type = {
58  .xct_name = "m0_fop_poolmach_dev",
59  .xct_sizeof = sizeof (struct m0_fop_poolmach_dev),
60  .xct_nr = 2,
61  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
62  }
63 };
64 
66 M0_BASSERT(offsetof(struct _m0_fop_poolmach_dev_s, _child[0]) ==
67  offsetof(struct m0_xcode_type, xct_child[0]));
68 
69 static struct _m0_fop_poolmach_set_s {
73  ._type = {
75  .xct_name = "m0_fop_poolmach_set",
76  .xct_sizeof = sizeof (struct m0_fop_poolmach_set),
77  .xct_nr = 2,
78  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
79  }
80 };
81 
83 M0_BASSERT(offsetof(struct _m0_fop_poolmach_set_s, _child[0]) ==
84  offsetof(struct m0_xcode_type, xct_child[0]));
85 
90  ._type = {
92  .xct_name = "m0_fop_poolmach_query_rep",
93  .xct_sizeof = sizeof (struct m0_fop_poolmach_query_rep),
94  .xct_nr = 2,
95  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
96  }
97 };
98 
101  offsetof(struct m0_xcode_type, xct_child[0]));
102 
107  ._type = {
109  .xct_name = "m0_fop_poolmach_dev_idx",
110  .xct_sizeof = sizeof (struct m0_fop_poolmach_dev_idx),
111  .xct_nr = 2,
112  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
113  }
114 };
115 
117 M0_BASSERT(offsetof(struct _m0_fop_poolmach_dev_idx_s, _child[0]) ==
118  offsetof(struct m0_xcode_type, xct_child[0]));
119 
124  ._type = {
126  .xct_name = "m0_fop_poolmach_query",
127  .xct_sizeof = sizeof (struct m0_fop_poolmach_query),
128  .xct_nr = 2,
129  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
130  }
131 };
132 
134 M0_BASSERT(offsetof(struct _m0_fop_poolmach_query_s, _child[0]) ==
135  offsetof(struct m0_xcode_type, xct_child[0]));
136 
137 
138 M0_BASSERT(sizeof(struct m0_fop_poolmach_set_rep) == 4U);
139 
140 M0_BASSERT(sizeof ((struct m0_fop_poolmach_set_rep *)0)->fps_rc == 4U);
142 
143 M0_BASSERT(sizeof(struct m0_fop_poolmach_dev_info) == 16U);
144 
145 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev_info *)0)->fpi_nr == 4U);
147 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev_info *)0)->fpi_dev == 8U);
149 
150 M0_BASSERT(sizeof(struct m0_fop_poolmach_dev) == 24U);
151 
152 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev *)0)->fpd_state == 4U);
154 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev *)0)->fpd_fid == 16U);
156 
157 M0_BASSERT(sizeof(struct m0_fop_poolmach_set) == 24U);
158 
159 M0_BASSERT(sizeof ((struct m0_fop_poolmach_set *)0)->fps_type == 4U);
161 M0_BASSERT(sizeof ((struct m0_fop_poolmach_set *)0)->fps_dev_info == 16U);
163 
164 M0_BASSERT(sizeof(struct m0_fop_poolmach_query_rep) == 24U);
165 
166 M0_BASSERT(sizeof ((struct m0_fop_poolmach_query_rep *)0)->fqr_rc == 4U);
168 M0_BASSERT(sizeof ((struct m0_fop_poolmach_query_rep *)0)->fqr_dev_info == 16U);
170 
171 M0_BASSERT(sizeof(struct m0_fop_poolmach_dev_idx) == 16U);
172 
173 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev_idx *)0)->fpx_nr == 4U);
175 M0_BASSERT(sizeof ((struct m0_fop_poolmach_dev_idx *)0)->fpx_fid == 8U);
177 
178 M0_BASSERT(sizeof(struct m0_fop_poolmach_query) == 24U);
179 
180 M0_BASSERT(sizeof ((struct m0_fop_poolmach_query *)0)->fpq_type == 4U);
182 M0_BASSERT(sizeof ((struct m0_fop_poolmach_query *)0)->fpq_dev_idx == 16U);
184 
185 
186 
188 {
190  .xf_name = "fps_rc",
191 
192  .xf_type = &M0_XT_U32,
193 
194  .xf_tag = 0,
195  .xf_opaque = NULL,
196  .xf_offset = offsetof(struct m0_fop_poolmach_set_rep, fps_rc),
197  .xf_read = NULL,
198  .xf_decor = {
200  }
201  };
202  m0_xc_u32_init();
203 
205 }
206 
208 {
210  .xf_name = "fpi_nr",
211 
212  .xf_type = &M0_XT_U32,
213 
214  .xf_tag = 0,
215  .xf_opaque = NULL,
216  .xf_offset = offsetof(struct m0_fop_poolmach_dev_info, fpi_nr),
217  .xf_read = NULL,
218  .xf_decor = {
220  }
221  };
222  m0_xc_u32_init();
223 
225  .xf_name = "fpi_dev",
226 
227  .xf_type = m0_fop_poolmach_dev_xc,
228 
229  .xf_tag = 0,
230  .xf_opaque = NULL,
231  .xf_offset = offsetof(struct m0_fop_poolmach_dev_info, fpi_dev),
232  .xf_read = NULL,
233  .xf_decor = {
235  }
236  };
238 
240 }
241 
243 {
245  .xf_name = "fpd_state",
246 
247  .xf_type = &M0_XT_U32,
248 
249  .xf_tag = 0,
250  .xf_opaque = NULL,
251  .xf_offset = offsetof(struct m0_fop_poolmach_dev, fpd_state),
252  .xf_read = NULL,
253  .xf_decor = {
255  }
256  };
257  m0_xc_u32_init();
258 
260  .xf_name = "fpd_fid",
261 
262  .xf_type = m0_fid_xc,
263 
264  .xf_tag = 0,
265  .xf_opaque = NULL,
266  .xf_offset = offsetof(struct m0_fop_poolmach_dev, fpd_fid),
267  .xf_read = NULL,
268  .xf_decor = {
270  }
271  };
273 
275 }
276 
278 {
280  .xf_name = "fps_type",
281 
282  .xf_type = &M0_XT_U32,
283 
284  .xf_tag = 0,
285  .xf_opaque = NULL,
286  .xf_offset = offsetof(struct m0_fop_poolmach_set, fps_type),
287  .xf_read = NULL,
288  .xf_decor = {
290  }
291  };
292  m0_xc_u32_init();
293 
295  .xf_name = "fps_dev_info",
296 
297  .xf_type = m0_fop_poolmach_dev_info_xc,
298 
299  .xf_tag = 0,
300  .xf_opaque = NULL,
301  .xf_offset = offsetof(struct m0_fop_poolmach_set, fps_dev_info),
302  .xf_read = NULL,
303  .xf_decor = {
305  }
306  };
308 
310 }
311 
313 {
315  .xf_name = "fqr_rc",
316 
317  .xf_type = &M0_XT_U32,
318 
319  .xf_tag = 0,
320  .xf_opaque = NULL,
321  .xf_offset = offsetof(struct m0_fop_poolmach_query_rep, fqr_rc),
322  .xf_read = NULL,
323  .xf_decor = {
325  }
326  };
327  m0_xc_u32_init();
328 
330  .xf_name = "fqr_dev_info",
331 
332  .xf_type = m0_fop_poolmach_dev_info_xc,
333 
334  .xf_tag = 0,
335  .xf_opaque = NULL,
336  .xf_offset = offsetof(struct m0_fop_poolmach_query_rep, fqr_dev_info),
337  .xf_read = NULL,
338  .xf_decor = {
340  }
341  };
343 
345 }
346 
348 {
350  .xf_name = "fpx_nr",
351 
352  .xf_type = &M0_XT_U32,
353 
354  .xf_tag = 0,
355  .xf_opaque = NULL,
356  .xf_offset = offsetof(struct m0_fop_poolmach_dev_idx, fpx_nr),
357  .xf_read = NULL,
358  .xf_decor = {
360  }
361  };
362  m0_xc_u32_init();
363 
365  .xf_name = "fpx_fid",
366 
367  .xf_type = m0_fid_xc,
368 
369  .xf_tag = 0,
370  .xf_opaque = NULL,
371  .xf_offset = offsetof(struct m0_fop_poolmach_dev_idx, fpx_fid),
372  .xf_read = NULL,
373  .xf_decor = {
375  }
376  };
378 
380 }
381 
383 {
385  .xf_name = "fpq_type",
386 
387  .xf_type = &M0_XT_U32,
388 
389  .xf_tag = 0,
390  .xf_opaque = NULL,
391  .xf_offset = offsetof(struct m0_fop_poolmach_query, fpq_type),
392  .xf_read = NULL,
393  .xf_decor = {
395  }
396  };
397  m0_xc_u32_init();
398 
400  .xf_name = "fpq_dev_idx",
401 
402  .xf_type = m0_fop_poolmach_dev_idx_xc,
403 
404  .xf_tag = 0,
405  .xf_opaque = NULL,
406  .xf_offset = offsetof(struct m0_fop_poolmach_query, fpq_dev_idx),
407  .xf_read = NULL,
408  .xf_decor = {
410  }
411  };
413 
415 }
416 
417 M0_INTERNAL void m0_xc_pool_pool_fops_init(void)
418 {
426 }
427 
428 M0_INTERNAL void m0_xc_pool_pool_fops_fini(void)
429 {
430 }
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:71
uint32_t fpi_nr
Definition: pool_fops.h:40
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:37
M0_INTERNAL void m0_xc_m0_fop_poolmach_dev_info_struct_init(void)
Definition: pool_fops_xc.c:207
struct m0_xcode_type _type
Definition: pool_fops_xc.c:121
struct m0_xcode_type * m0_fop_poolmach_dev_xc
Definition: pool_fops_xc.c:12
#define NULL
Definition: misc.h:38
struct m0_fop_poolmach_dev_info fps_dev_info
Definition: pool_fops.h:41
struct m0_fid * fpx_fid
Definition: pool_fops.h:41
struct m0_xcode_type * m0_fop_poolmach_dev_info_xc
Definition: pool_fops_xc.c:11
M0_INTERNAL void m0_xc_pool_pool_fops_init(void)
Definition: pool_fops_xc.c:417
struct m0_fop_poolmach_dev * fpi_dev
Definition: pool_fops.h:41
M0_BASSERT(offsetof(struct _m0_fop_poolmach_set_rep_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
M0_INTERNAL void m0_xc_m0_fop_poolmach_set_rep_struct_init(void)
Definition: pool_fops_xc.c:187
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:122
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
static struct _m0_fop_poolmach_dev_idx_s _m0_fop_poolmach_dev_idx
struct m0_xcode_type * m0_fop_poolmach_set_xc
Definition: pool_fops_xc.c:13
M0_INTERNAL void m0_xc_m0_fop_poolmach_dev_struct_init(void)
Definition: pool_fops_xc.c:242
struct m0_fop_poolmach_dev_idx fpq_dev_idx
Definition: pool_fops.h:41
M0_INTERNAL void m0_xc_m0_fop_poolmach_query_struct_init(void)
Definition: pool_fops_xc.c:382
static struct _m0_fop_poolmach_set_rep_s _m0_fop_poolmach_set_rep
struct m0_xcode_type * m0_fop_poolmach_query_rep_xc
Definition: pool_fops_xc.c:14
uint32_t fpq_type
Definition: pool_fops.h:40
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:105
M0_INTERNAL void m0_xc_m0_fop_poolmach_query_rep_struct_init(void)
Definition: pool_fops_xc.c:312
struct m0_xcode_type _type
Definition: pool_fops_xc.c:87
uint32_t fpx_nr
Definition: pool_fops.h:40
struct m0_fid fpd_fid
Definition: pool_fops.h:41
M0_INTERNAL void m0_xc_pool_pool_fops_fini(void)
Definition: pool_fops_xc.c:428
static struct _m0_fop_poolmach_query_rep_s _m0_fop_poolmach_query_rep
struct m0_xcode_field _child[1]
Definition: pool_fops_xc.c:20
int32_t fqr_rc
Definition: pool_fops.h:40
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:88
#define M0_POST(cond)
struct m0_xcode_type * m0_fop_poolmach_query_xc
Definition: pool_fops_xc.c:16
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
M0_INTERNAL void m0_xc_m0_fop_poolmach_dev_idx_struct_init(void)
Definition: pool_fops_xc.c:347
struct m0_xcode_type _type
Definition: pool_fops_xc.c:19
struct m0_xcode_type _type
Definition: pool_fops_xc.c:53
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
struct m0_xcode_type * m0_fop_poolmach_dev_idx_xc
Definition: pool_fops_xc.c:15
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_type _type
Definition: pool_fops_xc.c:104
uint32_t fps_type
Definition: pool_fops.h:40
struct m0_xcode_field _child[2]
Definition: pool_fops_xc.c:54
static struct _m0_fop_poolmach_set_s _m0_fop_poolmach_set
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
static struct _m0_fop_poolmach_dev_info_s _m0_fop_poolmach_dev_info
M0_INTERNAL void m0_xc_m0_fop_poolmach_set_struct_init(void)
Definition: pool_fops_xc.c:277
struct m0_xcode_type _type
Definition: pool_fops_xc.c:70
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
struct m0_fop_poolmach_dev_info fqr_dev_info
Definition: pool_fops.h:41
struct m0_xcode_type _type
Definition: pool_fops_xc.c:36
static struct _m0_fop_poolmach_dev_s _m0_fop_poolmach_dev
#define offsetof(typ, memb)
Definition: misc.h:29
uint32_t fpd_state
Definition: pool_fops.h:40
int32_t fps_rc
Definition: pool_fops.h:40
struct m0_xcode_type * m0_fop_poolmach_set_rep_xc
Definition: pool_fops_xc.c:10
static struct _m0_fop_poolmach_query_s _m0_fop_poolmach_query