Motr  M0
cas_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from cas/cas.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "cas/cas.h"
8 #include "cas/cas_xc.h"
9 
19 
20 static struct _m0_cas_hint_s {
23 } _m0_cas_hint = {
24  ._type = {
26  .xct_name = "m0_cas_hint",
27  .xct_sizeof = sizeof (struct m0_cas_hint),
28  .xct_nr = 2,
29  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
30  }
31 };
32 
34 M0_BASSERT(offsetof(struct _m0_cas_hint_s, _child[0]) ==
35  offsetof(struct m0_xcode_type, xct_child[0]));
36 
37 static struct _m0_cas_id_s {
40 } _m0_cas_id = {
41  ._type = {
43  .xct_name = "m0_cas_id",
44  .xct_sizeof = sizeof (struct m0_cas_id),
45  .xct_nr = 3,
46  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
47  }
48 };
49 
51 M0_BASSERT(offsetof(struct _m0_cas_id_s, _child[0]) ==
52  offsetof(struct m0_xcode_type, xct_child[0]));
53 
54 static struct _m0_cas_kv_s {
57 } _m0_cas_kv = {
58  ._type = {
60  .xct_name = "m0_cas_kv",
61  .xct_sizeof = sizeof (struct m0_cas_kv),
62  .xct_nr = 2,
63  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
64  }
65 };
66 
68 M0_BASSERT(offsetof(struct _m0_cas_kv_s, _child[0]) ==
69  offsetof(struct m0_xcode_type, xct_child[0]));
70 
71 static struct _m0_cas_kv_vec_s {
74 } _m0_cas_kv_vec = {
75  ._type = {
77  .xct_name = "m0_cas_kv_vec",
78  .xct_sizeof = sizeof (struct m0_cas_kv_vec),
79  .xct_nr = 2,
80  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
81  }
82 };
83 
85 M0_BASSERT(offsetof(struct _m0_cas_kv_vec_s, _child[0]) ==
86  offsetof(struct m0_xcode_type, xct_child[0]));
87 
88 static struct _m0_crv_s {
91 } _m0_crv = {
92  ._type = {
94  .xct_name = "m0_crv",
95  .xct_sizeof = sizeof (struct m0_crv),
96  .xct_nr = 1,
98  }
99 };
100 
102 M0_BASSERT(offsetof(struct _m0_crv_s, _child[0]) ==
103  offsetof(struct m0_xcode_type, xct_child[0]));
104 
105 static struct _m0_cas_rec_s {
108 } _m0_cas_rec = {
109  ._type = {
111  .xct_name = "m0_cas_rec",
112  .xct_sizeof = sizeof (struct m0_cas_rec),
113  .xct_nr = 6,
114  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
115  }
116 };
117 
119 M0_BASSERT(offsetof(struct _m0_cas_rec_s, _child[0]) ==
120  offsetof(struct m0_xcode_type, xct_child[0]));
121 
122 static struct _m0_cas_recv_s {
125 } _m0_cas_recv = {
126  ._type = {
128  .xct_name = "m0_cas_recv",
129  .xct_sizeof = sizeof (struct m0_cas_recv),
130  .xct_nr = 2,
131  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
132  }
133 };
134 
136 M0_BASSERT(offsetof(struct _m0_cas_recv_s, _child[0]) ==
137  offsetof(struct m0_xcode_type, xct_child[0]));
138 
139 static struct _m0_cas_op_s {
142 } _m0_cas_op = {
143  ._type = {
145  .xct_name = "m0_cas_op",
146  .xct_sizeof = sizeof (struct m0_cas_op),
147  .xct_nr = 4,
148  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
149  }
150 };
151 
153 M0_BASSERT(offsetof(struct _m0_cas_op_s, _child[0]) ==
154  offsetof(struct m0_xcode_type, xct_child[0]));
155 
156 static struct _m0_cas_rep_s {
159 } _m0_cas_rep = {
160  ._type = {
162  .xct_name = "m0_cas_rep",
163  .xct_sizeof = sizeof (struct m0_cas_rep),
164  .xct_nr = 3,
165  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
166  }
167 };
168 
170 M0_BASSERT(offsetof(struct _m0_cas_rep_s, _child[0]) ==
171  offsetof(struct m0_xcode_type, xct_child[0]));
172 
173 
174 M0_BASSERT(sizeof(struct m0_cas_hint) == 24U);
175 
176 M0_BASSERT(sizeof ((struct m0_cas_hint *)0)->ch_cookie == 16U);
177 M0_BASSERT(offsetof(struct m0_cas_hint, ch_cookie) == 0U);
178 M0_BASSERT(sizeof ((struct m0_cas_hint *)0)->ch_index == 8U);
179 M0_BASSERT(offsetof(struct m0_cas_hint, ch_index) == 16U);
180 
181 M0_BASSERT(sizeof(struct m0_cas_id) == 88U);
182 
183 M0_BASSERT(sizeof ((struct m0_cas_id *)0)->ci_fid == 16U);
184 M0_BASSERT(offsetof(struct m0_cas_id, ci_fid) == 0U);
185 M0_BASSERT(sizeof ((struct m0_cas_id *)0)->ci_hint == 24U);
186 M0_BASSERT(offsetof(struct m0_cas_id, ci_hint) == 16U);
187 M0_BASSERT(sizeof ((struct m0_cas_id *)0)->ci_layout == 48U);
188 M0_BASSERT(offsetof(struct m0_cas_id, ci_layout) == 40U);
189 
190 M0_BASSERT(sizeof(struct m0_cas_kv) == 112U);
191 
192 M0_BASSERT(sizeof ((struct m0_cas_kv *)0)->ck_key == 56U);
193 M0_BASSERT(offsetof(struct m0_cas_kv, ck_key) == 0U);
194 M0_BASSERT(sizeof ((struct m0_cas_kv *)0)->ck_val == 56U);
195 M0_BASSERT(offsetof(struct m0_cas_kv, ck_val) == 56U);
196 
197 M0_BASSERT(sizeof(struct m0_cas_kv_vec) == 16U);
198 
199 M0_BASSERT(sizeof ((struct m0_cas_kv_vec *)0)->cv_nr == 8U);
200 M0_BASSERT(offsetof(struct m0_cas_kv_vec, cv_nr) == 0U);
201 M0_BASSERT(sizeof ((struct m0_cas_kv_vec *)0)->cv_rec == 8U);
202 M0_BASSERT(offsetof(struct m0_cas_kv_vec, cv_rec) == 8U);
203 
204 M0_BASSERT(sizeof(struct m0_crv) == 8U);
205 
206 M0_BASSERT(sizeof ((struct m0_crv *)0)->crv_encoded == 8U);
207 M0_BASSERT(offsetof(struct m0_crv, crv_encoded) == 0U);
208 
209 M0_BASSERT(sizeof(struct m0_cas_rec) == 168U);
210 
211 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_key == 56U);
212 M0_BASSERT(offsetof(struct m0_cas_rec, cr_key) == 0U);
213 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_val == 56U);
214 M0_BASSERT(offsetof(struct m0_cas_rec, cr_val) == 56U);
215 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_kv_bufs == 16U);
216 M0_BASSERT(offsetof(struct m0_cas_rec, cr_kv_bufs) == 112U);
217 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_hint == 24U);
218 M0_BASSERT(offsetof(struct m0_cas_rec, cr_hint) == 128U);
219 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_rc == 8U);
220 M0_BASSERT(offsetof(struct m0_cas_rec, cr_rc) == 152U);
221 M0_BASSERT(sizeof ((struct m0_cas_rec *)0)->cr_ver == 8U);
222 M0_BASSERT(offsetof(struct m0_cas_rec, cr_ver) == 160U);
223 
224 M0_BASSERT(sizeof(struct m0_cas_recv) == 16U);
225 
226 M0_BASSERT(sizeof ((struct m0_cas_recv *)0)->cr_nr == 8U);
227 M0_BASSERT(offsetof(struct m0_cas_recv, cr_nr) == 0U);
228 M0_BASSERT(sizeof ((struct m0_cas_recv *)0)->cr_rec == 8U);
229 M0_BASSERT(offsetof(struct m0_cas_recv, cr_rec) == 8U);
230 
231 M0_BASSERT(sizeof(struct m0_cas_op) == 152U);
232 
233 M0_BASSERT(sizeof ((struct m0_cas_op *)0)->cg_id == 88U);
234 M0_BASSERT(offsetof(struct m0_cas_op, cg_id) == 0U);
235 M0_BASSERT(sizeof ((struct m0_cas_op *)0)->cg_rec == 16U);
236 M0_BASSERT(offsetof(struct m0_cas_op, cg_rec) == 88U);
237 M0_BASSERT(sizeof ((struct m0_cas_op *)0)->cg_flags == 4U);
238 M0_BASSERT(offsetof(struct m0_cas_op, cg_flags) == 104U);
239 M0_BASSERT(sizeof ((struct m0_cas_op *)0)->cg_txd == 40U);
240 M0_BASSERT(offsetof(struct m0_cas_op, cg_txd) == 112U);
241 
242 M0_BASSERT(sizeof(struct m0_cas_rep) == 40U);
243 
244 M0_BASSERT(sizeof ((struct m0_cas_rep *)0)->cgr_rc == 4U);
245 M0_BASSERT(offsetof(struct m0_cas_rep, cgr_rc) == 0U);
246 M0_BASSERT(sizeof ((struct m0_cas_rep *)0)->cgr_rep == 16U);
247 M0_BASSERT(offsetof(struct m0_cas_rep, cgr_rep) == 8U);
248 M0_BASSERT(sizeof ((struct m0_cas_rep *)0)->cgr_mod_rep == 16U);
249 M0_BASSERT(offsetof(struct m0_cas_rep, cgr_mod_rep) == 24U);
250 
251 
253  { .xev_idx = 0, .xev_name = "CO_GET", .xev_val = 0 },
254  { .xev_idx = 1, .xev_name = "CO_PUT", .xev_val = 1 },
255  { .xev_idx = 2, .xev_name = "CO_DEL", .xev_val = 2 },
256  { .xev_idx = 3, .xev_name = "CO_CUR", .xev_val = 3 },
257  { .xev_idx = 4, .xev_name = "CO_REP", .xev_val = 4 },
258  { .xev_idx = 5, .xev_name = "CO_GC", .xev_val = 5 },
259  { .xev_idx = 6, .xev_name = "CO_MIN", .xev_val = 6 },
260  { .xev_idx = 7, .xev_name = "CO_TRUNC", .xev_val = 7 },
261  { .xev_idx = 8, .xev_name = "CO_DROP", .xev_val = 8 },
262  { .xev_idx = 9, .xev_name = "CO_MEM_PLACE", .xev_val = 9 },
263  { .xev_idx = 10, .xev_name = "CO_MEM_FREE", .xev_val = 10 },
264  { .xev_idx = 11, .xev_name = "CO_NR", .xev_val = 11 },
265  { .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_cas_opcode'." }
266 };
267 
269  .xe_name = "m0_cas_opcode",
270  .xe_nr = 12,
271  .xe_val = m0_cas_opcode_data,
272  .xe_maxlen = 12
273 };
275  { .xev_idx = 0, .xev_name = "CT_META", .xev_val = 0 },
276  { .xev_idx = 1, .xev_name = "CT_BTREE", .xev_val = 1 },
277  { .xev_idx = 2, .xev_name = "CT_DEAD_INDEX", .xev_val = 2 },
278  { .xev_idx = 3, .xev_name = "CT_MEM", .xev_val = 3 },
279  { .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_cas_type'." }
280 };
281 
283  .xe_name = "m0_cas_type",
284  .xe_nr = 4,
285  .xe_val = m0_cas_type_data,
286  .xe_maxlen = 13
287 };
288 
289 M0_INTERNAL void m0_xc_m0_cas_hint_struct_init(void)
290 {
291  _m0_cas_hint._child[0] = (struct m0_xcode_field) {
292  .xf_name = "ch_cookie",
293 
294  .xf_type = m0_cookie_xc,
295 
296  .xf_tag = 0,
297  .xf_opaque = NULL,
298  .xf_offset = offsetof(struct m0_cas_hint, ch_cookie),
299  .xf_read = NULL,
300  .xf_decor = {
302  }
303  };
305 
306  _m0_cas_hint._child[1] = (struct m0_xcode_field) {
307  .xf_name = "ch_index",
308 
309  .xf_type = &M0_XT_U64,
310 
311  .xf_tag = 0,
312  .xf_opaque = NULL,
313  .xf_offset = offsetof(struct m0_cas_hint, ch_index),
314  .xf_read = NULL,
315  .xf_decor = {
317  }
318  };
319  m0_xc_u64_init();
320 
322 }
323 
324 M0_INTERNAL void m0_xc_m0_cas_id_struct_init(void)
325 {
326  _m0_cas_id._child[0] = (struct m0_xcode_field) {
327  .xf_name = "ci_fid",
328 
329  .xf_type = m0_fid_xc,
330 
331  .xf_tag = 0,
332  .xf_opaque = NULL,
333  .xf_offset = offsetof(struct m0_cas_id, ci_fid),
334  .xf_read = NULL,
335  .xf_decor = {
337  }
338  };
340 
341  _m0_cas_id._child[1] = (struct m0_xcode_field) {
342  .xf_name = "ci_hint",
343 
344  .xf_type = m0_cas_hint_xc,
345 
346  .xf_tag = 0,
347  .xf_opaque = NULL,
348  .xf_offset = offsetof(struct m0_cas_id, ci_hint),
349  .xf_read = NULL,
350  .xf_decor = {
352  }
353  };
355 
356  _m0_cas_id._child[2] = (struct m0_xcode_field) {
357  .xf_name = "ci_layout",
358 
359  .xf_type = m0_dix_layout_xc,
360 
361  .xf_tag = 0,
362  .xf_opaque = NULL,
363  .xf_offset = offsetof(struct m0_cas_id, ci_layout),
364  .xf_read = NULL,
365  .xf_decor = {
367  }
368  };
370 
372 }
373 
374 M0_INTERNAL void m0_xc_m0_cas_kv_struct_init(void)
375 {
376  _m0_cas_kv._child[0] = (struct m0_xcode_field) {
377  .xf_name = "ck_key",
378 
379  .xf_type = m0_rpc_at_buf_xc,
380 
381  .xf_tag = 0,
382  .xf_opaque = NULL,
383  .xf_offset = offsetof(struct m0_cas_kv, ck_key),
384  .xf_read = NULL,
385  .xf_decor = {
387  }
388  };
390 
391  _m0_cas_kv._child[1] = (struct m0_xcode_field) {
392  .xf_name = "ck_val",
393 
394  .xf_type = m0_rpc_at_buf_xc,
395 
396  .xf_tag = 0,
397  .xf_opaque = NULL,
398  .xf_offset = offsetof(struct m0_cas_kv, ck_val),
399  .xf_read = NULL,
400  .xf_decor = {
402  }
403  };
405 
407 }
408 
409 M0_INTERNAL void m0_xc_m0_cas_kv_vec_struct_init(void)
410 {
411  _m0_cas_kv_vec._child[0] = (struct m0_xcode_field) {
412  .xf_name = "cv_nr",
413 
414  .xf_type = &M0_XT_U64,
415 
416  .xf_tag = 0,
417  .xf_opaque = NULL,
418  .xf_offset = offsetof(struct m0_cas_kv_vec, cv_nr),
419  .xf_read = NULL,
420  .xf_decor = {
422  }
423  };
424  m0_xc_u64_init();
425 
426  _m0_cas_kv_vec._child[1] = (struct m0_xcode_field) {
427  .xf_name = "cv_rec",
428 
429  .xf_type = m0_cas_kv_xc,
430 
431  .xf_tag = 0,
432  .xf_opaque = NULL,
433  .xf_offset = offsetof(struct m0_cas_kv_vec, cv_rec),
434  .xf_read = NULL,
435  .xf_decor = {
437  }
438  };
440 
442 }
443 
444 M0_INTERNAL void m0_xc_m0_crv_struct_init(void)
445 {
446  _m0_crv._child[0] = (struct m0_xcode_field) {
447  .xf_name = "crv_encoded",
448 
449  .xf_type = &M0_XT_U64,
450 
451  .xf_tag = 0,
452  .xf_opaque = NULL,
453  .xf_offset = offsetof(struct m0_crv, crv_encoded),
454  .xf_read = NULL,
455  .xf_decor = {
457  }
458  };
459  m0_xc_u64_init();
460 
462 }
463 
464 M0_INTERNAL void m0_xc_m0_cas_rec_struct_init(void)
465 {
466  _m0_cas_rec._child[0] = (struct m0_xcode_field) {
467  .xf_name = "cr_key",
468 
469  .xf_type = m0_rpc_at_buf_xc,
470 
471  .xf_tag = 0,
472  .xf_opaque = NULL,
473  .xf_offset = offsetof(struct m0_cas_rec, cr_key),
474  .xf_read = NULL,
475  .xf_decor = {
477  }
478  };
480 
481  _m0_cas_rec._child[1] = (struct m0_xcode_field) {
482  .xf_name = "cr_val",
483 
484  .xf_type = m0_rpc_at_buf_xc,
485 
486  .xf_tag = 0,
487  .xf_opaque = NULL,
488  .xf_offset = offsetof(struct m0_cas_rec, cr_val),
489  .xf_read = NULL,
490  .xf_decor = {
492  }
493  };
495 
496  _m0_cas_rec._child[2] = (struct m0_xcode_field) {
497  .xf_name = "cr_kv_bufs",
498 
499  .xf_type = m0_cas_kv_vec_xc,
500 
501  .xf_tag = 0,
502  .xf_opaque = NULL,
503  .xf_offset = offsetof(struct m0_cas_rec, cr_kv_bufs),
504  .xf_read = NULL,
505  .xf_decor = {
507  }
508  };
510 
511  _m0_cas_rec._child[3] = (struct m0_xcode_field) {
512  .xf_name = "cr_hint",
513 
514  .xf_type = m0_cas_hint_xc,
515 
516  .xf_tag = 0,
517  .xf_opaque = NULL,
518  .xf_offset = offsetof(struct m0_cas_rec, cr_hint),
519  .xf_read = NULL,
520  .xf_decor = {
522  }
523  };
525 
526  _m0_cas_rec._child[4] = (struct m0_xcode_field) {
527  .xf_name = "cr_rc",
528 
529  .xf_type = &M0_XT_U64,
530 
531  .xf_tag = 0,
532  .xf_opaque = NULL,
533  .xf_offset = offsetof(struct m0_cas_rec, cr_rc),
534  .xf_read = NULL,
535  .xf_decor = {
537  }
538  };
539  m0_xc_u64_init();
540 
541  _m0_cas_rec._child[5] = (struct m0_xcode_field) {
542  .xf_name = "cr_ver",
543 
544  .xf_type = m0_crv_xc,
545 
546  .xf_tag = 0,
547  .xf_opaque = NULL,
548  .xf_offset = offsetof(struct m0_cas_rec, cr_ver),
549  .xf_read = NULL,
550  .xf_decor = {
552  }
553  };
555 
557 }
558 
559 M0_INTERNAL void m0_xc_m0_cas_recv_struct_init(void)
560 {
561  _m0_cas_recv._child[0] = (struct m0_xcode_field) {
562  .xf_name = "cr_nr",
563 
564  .xf_type = &M0_XT_U64,
565 
566  .xf_tag = 0,
567  .xf_opaque = NULL,
568  .xf_offset = offsetof(struct m0_cas_recv, cr_nr),
569  .xf_read = NULL,
570  .xf_decor = {
572  }
573  };
574  m0_xc_u64_init();
575 
576  _m0_cas_recv._child[1] = (struct m0_xcode_field) {
577  .xf_name = "cr_rec",
578 
579  .xf_type = m0_cas_rec_xc,
580 
581  .xf_tag = 0,
582  .xf_opaque = NULL,
583  .xf_offset = offsetof(struct m0_cas_recv, cr_rec),
584  .xf_read = NULL,
585  .xf_decor = {
587  }
588  };
590 
592 }
593 
594 M0_INTERNAL void m0_xc_m0_cas_op_struct_init(void)
595 {
596  _m0_cas_op._child[0] = (struct m0_xcode_field) {
597  .xf_name = "cg_id",
598 
599  .xf_type = m0_cas_id_xc,
600 
601  .xf_tag = 0,
602  .xf_opaque = NULL,
603  .xf_offset = offsetof(struct m0_cas_op, cg_id),
604  .xf_read = NULL,
605  .xf_decor = {
607  }
608  };
610 
611  _m0_cas_op._child[1] = (struct m0_xcode_field) {
612  .xf_name = "cg_rec",
613 
614  .xf_type = m0_cas_recv_xc,
615 
616  .xf_tag = 0,
617  .xf_opaque = NULL,
618  .xf_offset = offsetof(struct m0_cas_op, cg_rec),
619  .xf_read = NULL,
620  .xf_decor = {
622  }
623  };
625 
626  _m0_cas_op._child[2] = (struct m0_xcode_field) {
627  .xf_name = "cg_flags",
628 
629  .xf_type = &M0_XT_U32,
630 
631  .xf_tag = 0,
632  .xf_opaque = NULL,
633  .xf_offset = offsetof(struct m0_cas_op, cg_flags),
634  .xf_read = NULL,
635  .xf_decor = {
637  }
638  };
639  m0_xc_u32_init();
640 
641  _m0_cas_op._child[3] = (struct m0_xcode_field) {
642  .xf_name = "cg_txd",
643 
644  .xf_type = m0_dtm0_tx_desc_xc,
645 
646  .xf_tag = 0,
647  .xf_opaque = NULL,
648  .xf_offset = offsetof(struct m0_cas_op, cg_txd),
649  .xf_read = NULL,
650  .xf_decor = {
652  }
653  };
655 
657 }
658 
659 M0_INTERNAL void m0_xc_m0_cas_rep_struct_init(void)
660 {
661  _m0_cas_rep._child[0] = (struct m0_xcode_field) {
662  .xf_name = "cgr_rc",
663 
664  .xf_type = &M0_XT_U32,
665 
666  .xf_tag = 0,
667  .xf_opaque = NULL,
668  .xf_offset = offsetof(struct m0_cas_rep, cgr_rc),
669  .xf_read = NULL,
670  .xf_decor = {
672  }
673  };
674  m0_xc_u32_init();
675 
676  _m0_cas_rep._child[1] = (struct m0_xcode_field) {
677  .xf_name = "cgr_rep",
678 
679  .xf_type = m0_cas_recv_xc,
680 
681  .xf_tag = 0,
682  .xf_opaque = NULL,
683  .xf_offset = offsetof(struct m0_cas_rep, cgr_rep),
684  .xf_read = NULL,
685  .xf_decor = {
687  }
688  };
690 
691  _m0_cas_rep._child[2] = (struct m0_xcode_field) {
692  .xf_name = "cgr_mod_rep",
693 
694  .xf_type = m0_fop_mod_rep_xc,
695 
696  .xf_tag = 0,
697  .xf_opaque = NULL,
698  .xf_offset = offsetof(struct m0_cas_rep, cgr_mod_rep),
699  .xf_read = NULL,
700  .xf_decor = {
702  }
703  };
705 
707 }
708 
709 M0_INTERNAL void m0_xc_cas_cas_init(void)
710 {
720 }
721 
722 M0_INTERNAL void m0_xc_cas_cas_fini(void)
723 {
724 }
struct m0_xcode_type _type
Definition: cas_xc.c:38
uint64_t cr_rc
Definition: cas.h:340
int32_t cgr_rc
Definition: cas.h:293
struct m0_xcode_type * m0_fop_mod_rep_xc
Definition: wire_xc.c:14
struct m0_xcode_field _child[4]
Definition: cas_xc.c:141
struct m0_rpc_at_buf cr_val
Definition: cas.h:301
M0_INTERNAL void m0_xc_m0_dix_layout_struct_init(void)
Definition: layout_xc.c:336
struct m0_xcode_field _child[2]
Definition: cas_xc.c:56
struct m0_dtm0_tx_desc cg_txd
Definition: cas.h:307
#define NULL
Definition: misc.h:38
uint64_t ch_index
Definition: cas.h:287
M0_INTERNAL void m0_xc_m0_crv_struct_init(void)
Definition: cas_xc.c:444
struct m0_xcode_type _type
Definition: cas_xc.c:55
struct m0_xcode_field _child[1]
Definition: cas_xc.c:90
struct m0_xcode_enum m0_xc_m0_cas_opcode_enum
Definition: cas_xc.c:268
M0_INTERNAL void m0_xc_m0_cookie_struct_init(void)
Definition: cookie_xc.c:39
struct m0_crv cr_ver
Definition: cas.h:347
struct m0_rpc_at_buf ck_key
Definition: cas.h:284
struct m0_fid ci_fid
Definition: cas.h:289
struct m0_rpc_at_buf ck_val
Definition: cas.h:285
struct m0_xcode_type * m0_dix_layout_xc
Definition: layout_xc.c:14
static struct _m0_cas_hint_s _m0_cas_hint
static struct _m0_crv_s _m0_crv
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_cas_hint cr_hint
Definition: cas.h:319
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
M0_INTERNAL void m0_xc_m0_cas_kv_vec_struct_init(void)
Definition: cas_xc.c:409
M0_INTERNAL void m0_xc_cas_cas_init(void)
Definition: cas_xc.c:709
struct m0_xcode_field _child[3]
Definition: cas_xc.c:39
struct m0_xcode_type _type
Definition: cas_xc.c:157
const char * xe_name
Definition: enum.h:58
M0_INTERNAL void m0_xc_cas_cas_fini(void)
Definition: cas_xc.c:722
static struct _m0_cas_kv_s _m0_cas_kv
static struct _m0_cas_op_s _m0_cas_op
struct m0_cas_id cg_id
Definition: cas.h:285
static struct _m0_cas_rec_s _m0_cas_rec
struct m0_xcode_enum m0_xc_m0_cas_type_enum
Definition: cas_xc.c:282
Definition: cas.h:126
uint64_t crv_encoded
Definition: cas.h:284
M0_INTERNAL void m0_xc_m0_cas_rep_struct_init(void)
Definition: cas_xc.c:659
struct m0_xcode_type * m0_cas_recv_xc
Definition: cas_xc.c:16
Definition: cas.h:157
struct m0_xcode_type * m0_cas_id_xc
Definition: cas_xc.c:11
struct m0_dix_layout ci_layout
Definition: cas.h:296
static struct _m0_cas_rep_s _m0_cas_rep
uint64_t cr_nr
Definition: cas.h:284
struct m0_xcode_type * m0_cas_hint_xc
Definition: cas_xc.c:10
const struct m0_xcode_enum_val m0_cas_opcode_data[]
Definition: cas_xc.c:252
struct m0_xcode_type _type
Definition: cas_xc.c:89
M0_INTERNAL void m0_xc_m0_dtm0_tx_desc_struct_init(void)
Definition: tx_desc_xc.c:234
struct m0_cas_kv_vec cr_kv_bufs
Definition: cas.h:314
struct m0_xcode_type * m0_cas_op_xc
Definition: cas_xc.c:17
static struct _m0_cas_id_s _m0_cas_id
struct m0_xcode_type * m0_cas_rep_xc
Definition: cas_xc.c:18
#define M0_POST(cond)
struct m0_xcode_type * m0_crv_xc
Definition: cas_xc.c:14
struct m0_xcode_type * m0_dtm0_tx_desc_xc
Definition: tx_desc_xc.c:13
struct m0_xcode_field _child[2]
Definition: cas_xc.c:22
struct m0_cas_recv cg_rec
Definition: cas.h:295
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
static struct _m0_cas_kv_vec_s _m0_cas_kv_vec
struct m0_fop_mod_rep cgr_mod_rep
Definition: cas.h:307
M0_INTERNAL void m0_xc_m0_fop_mod_rep_struct_init(void)
Definition: wire_xc.c:315
M0_INTERNAL void m0_xc_m0_cas_rec_struct_init(void)
Definition: cas_xc.c:464
M0_INTERNAL void m0_xc_m0_cas_recv_struct_init(void)
Definition: cas_xc.c:559
struct m0_xcode_type * m0_cas_kv_xc
Definition: cas_xc.c:12
void m0_xc_u64_init(void)
Definition: xcode.c:904
M0_INTERNAL void m0_xc_m0_cas_op_struct_init(void)
Definition: cas_xc.c:594
Definition: cas.h:376
struct m0_xcode_type _type
Definition: cas_xc.c:21
struct m0_xcode_type _type
Definition: cas_xc.c:123
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
struct m0_xcode_field _child[2]
Definition: cas_xc.c:124
struct m0_cookie ch_cookie
Definition: cas.h:285
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_type _type
Definition: cas_xc.c:106
struct m0_xcode_type * m0_cas_kv_vec_xc
Definition: cas_xc.c:13
M0_INTERNAL void m0_xc_m0_cas_hint_struct_init(void)
Definition: cas_xc.c:289
struct m0_rpc_at_buf cr_key
Definition: cas.h:291
M0_BASSERT(offsetof(struct _m0_cas_hint_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
const struct m0_xcode_enum_val m0_cas_type_data[]
Definition: cas_xc.c:274
struct m0_cas_hint ci_hint
Definition: cas.h:291
void m0_xc_u32_init(void)
Definition: xcode.c:900
struct m0_xcode_type * m0_cookie_xc
Definition: cookie_xc.c:10
struct m0_cas_rec * cr_rec
Definition: cas.h:285
static struct _m0_cas_recv_s _m0_cas_recv
struct m0_xcode_type _type
Definition: cas_xc.c:140
uint64_t cv_nr
Definition: cas.h:284
M0_INTERNAL void m0_xc_m0_cas_kv_struct_init(void)
Definition: cas_xc.c:374
const char * xf_name
Definition: xcode.h:251
M0_INTERNAL void m0_xc_m0_rpc_at_buf_struct_init(void)
Definition: at_xc.c:184
struct m0_cas_recv cgr_rep
Definition: cas.h:304
struct m0_xcode_field _child[2]
Definition: cas_xc.c:73
M0_INTERNAL void m0_xc_m0_cas_id_struct_init(void)
Definition: cas_xc.c:324
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
struct m0_xcode_type _type
Definition: cas_xc.c:72
Definition: cas.h:107
struct m0_xcode_type * m0_rpc_at_buf_xc
Definition: at_xc.c:12
uint32_t cg_flags
Definition: cas.h:302
struct m0_xcode_field _child[6]
Definition: cas_xc.c:107
struct m0_xcode_type * m0_cas_rec_xc
Definition: cas_xc.c:15
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_field _child[3]
Definition: cas_xc.c:158
struct m0_cas_kv * cv_rec
Definition: cas.h:285