Motr  M0
ioq_error_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from stob/ioq_error.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "stob/ioq_error.h"
8 #include "stob/ioq_error_xc.h"
9 
11 
12 static struct _m0_stob_ioq_error_s {
16  ._type = {
18  .xct_name = "m0_stob_ioq_error",
19  .xct_sizeof = sizeof (struct m0_stob_ioq_error),
20  .xct_nr = 8,
21  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
22  }
23 };
24 
26 M0_BASSERT(offsetof(struct _m0_stob_ioq_error_s, _child[0]) ==
27  offsetof(struct m0_xcode_type, xct_child[0]));
28 
29 
30 M0_BASSERT(sizeof(struct m0_stob_ioq_error) == 96U);
31 
32 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_conf_sdev == 16U);
34 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_stob_id == 32U);
36 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_fd == 8U);
38 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_opcode == 8U);
40 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_rc == 8U);
42 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_offset == 8U);
44 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_size == 8U);
46 M0_BASSERT(sizeof ((struct m0_stob_ioq_error *)0)->sie_bshift == 4U);
48 
49 
50 
52 {
54  .xf_name = "sie_conf_sdev",
55 
56  .xf_type = m0_fid_xc,
57 
58  .xf_tag = 0,
59  .xf_opaque = NULL,
60  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_conf_sdev),
61  .xf_read = NULL,
62  .xf_decor = {
64  }
65  };
67 
69  .xf_name = "sie_stob_id",
70 
71  .xf_type = m0_stob_id_xc,
72 
73  .xf_tag = 0,
74  .xf_opaque = NULL,
75  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_stob_id),
76  .xf_read = NULL,
77  .xf_decor = {
79  }
80  };
82 
84  .xf_name = "sie_fd",
85 
86  .xf_type = &M0_XT_U64,
87 
88  .xf_tag = 0,
89  .xf_opaque = NULL,
90  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_fd),
91  .xf_read = NULL,
92  .xf_decor = {
94  }
95  };
97 
99  .xf_name = "sie_opcode",
100 
101  .xf_type = &M0_XT_U64,
102 
103  .xf_tag = 0,
104  .xf_opaque = NULL,
105  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_opcode),
106  .xf_read = NULL,
107  .xf_decor = {
109  }
110  };
111  m0_xc_u64_init();
112 
114  .xf_name = "sie_rc",
115 
116  .xf_type = &M0_XT_U64,
117 
118  .xf_tag = 0,
119  .xf_opaque = NULL,
120  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_rc),
121  .xf_read = NULL,
122  .xf_decor = {
124  }
125  };
126  m0_xc_u64_init();
127 
129  .xf_name = "sie_offset",
130 
131  .xf_type = &M0_XT_U64,
132 
133  .xf_tag = 0,
134  .xf_opaque = NULL,
135  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_offset),
136  .xf_read = NULL,
137  .xf_decor = {
139  }
140  };
141  m0_xc_u64_init();
142 
144  .xf_name = "sie_size",
145 
146  .xf_type = &M0_XT_U64,
147 
148  .xf_tag = 0,
149  .xf_opaque = NULL,
150  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_size),
151  .xf_read = NULL,
152  .xf_decor = {
154  }
155  };
156  m0_xc_u64_init();
157 
159  .xf_name = "sie_bshift",
160 
161  .xf_type = &M0_XT_U32,
162 
163  .xf_tag = 0,
164  .xf_opaque = NULL,
165  .xf_offset = offsetof(struct m0_stob_ioq_error, sie_bshift),
166  .xf_read = NULL,
167  .xf_decor = {
169  }
170  };
171  m0_xc_u32_init();
172 
174 }
175 
176 M0_INTERNAL void m0_xc_stob_ioq_error_init(void)
177 {
179 }
180 
181 M0_INTERNAL void m0_xc_stob_ioq_error_fini(void)
182 {
183 }
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_m0_stob_id_struct_init(void)
Definition: stob_xc.c:39
M0_INTERNAL void m0_xc_stob_ioq_error_fini(void)
Definition: ioq_error_xc.c:181
static struct _m0_stob_ioq_error_s _m0_stob_ioq_error
M0_INTERNAL void m0_xc_m0_stob_ioq_error_struct_init(void)
Definition: ioq_error_xc.c:51
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
struct m0_xcode_type * m0_stob_id_xc
Definition: stob_xc.c:10
int64_t sie_rc
Definition: ioq_error.h:94
m0_bcount_t sie_size
Definition: ioq_error.h:96
M0_INTERNAL void m0_xc_stob_ioq_error_init(void)
Definition: ioq_error_xc.c:176
struct m0_xcode_type * m0_stob_ioq_error_xc
Definition: ioq_error_xc.c:10
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
void m0_xc_u64_init(void)
Definition: xcode.c:904
struct m0_xcode_type _type
Definition: ioq_error_xc.c:13
struct m0_xcode_field _child[8]
Definition: ioq_error_xc.c:14
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
int64_t sie_fd
Definition: ioq_error.h:88
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_stob_id sie_stob_id
Definition: ioq_error.h:86
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
m0_bindex_t sie_offset
Definition: ioq_error.h:95
int64_t sie_opcode
Definition: ioq_error.h:93
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_fid sie_conf_sdev
Definition: ioq_error.h:84
#define offsetof(typ, memb)
Definition: misc.h:29
uint32_t sie_bshift
Definition: ioq_error.h:97
M0_BASSERT(offsetof(struct _m0_stob_ioq_error_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))