Motr  M0
entrypoint_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from ha/entrypoint_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "ha/entrypoint_fops.h"
9 
12 
15  struct m0_xcode_field _child[10];
17  ._type = {
19  .xct_name = "m0_ha_entrypoint_rep_fop",
20  .xct_sizeof = sizeof (struct m0_ha_entrypoint_rep_fop),
21  .xct_nr = 10,
22  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
23  }
24 };
25 
28  offsetof(struct m0_xcode_type, xct_child[0]));
29 
34  ._type = {
36  .xct_name = "m0_ha_entrypoint_req_fop",
37  .xct_sizeof = sizeof (struct m0_ha_entrypoint_req_fop),
38  .xct_nr = 7,
39  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
40  }
41 };
42 
45  offsetof(struct m0_xcode_type, xct_child[0]));
46 
47 
48 M0_BASSERT(sizeof(struct m0_ha_entrypoint_rep_fop) == 248U);
49 
50 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_quorum == 4U);
52 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_confd_fids == 16U);
54 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_confd_eps == 16U);
56 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_active_rm_fid == 16U);
58 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_active_rm_ep == 16U);
60 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_control == 4U);
62 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_link_params == 112U);
64 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_link_do_reconnect == 8U);
68 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_rep_fop *)0)->hbp_cookie_actual == 40U);
70 
71 M0_BASSERT(sizeof(struct m0_ha_entrypoint_req_fop) == 208U);
72 
73 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_first_request == 4U);
75 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_generation == 8U);
77 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_process_fid == 16U);
79 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_link_params == 112U);
81 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_git_rev_id == 16U);
83 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_pid == 8U);
85 M0_BASSERT(sizeof ((struct m0_ha_entrypoint_req_fop *)0)->erf_cookie_expected == 40U);
87 
88 
89 
91 {
93  .xf_name = "hbp_quorum",
94 
95  .xf_type = &M0_XT_U32,
96 
97  .xf_tag = 0,
98  .xf_opaque = NULL,
99  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_quorum),
100  .xf_read = NULL,
101  .xf_decor = {
103  }
104  };
105  m0_xc_u32_init();
106 
108  .xf_name = "hbp_confd_fids",
109 
110  .xf_type = m0_fid_arr_xc,
111 
112  .xf_tag = 0,
113  .xf_opaque = NULL,
114  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_confd_fids),
115  .xf_read = NULL,
116  .xf_decor = {
118  }
119  };
121 
123  .xf_name = "hbp_confd_eps",
124 
125  .xf_type = m0_bufs_xc,
126 
127  .xf_tag = 0,
128  .xf_opaque = NULL,
129  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_confd_eps),
130  .xf_read = NULL,
131  .xf_decor = {
133  }
134  };
136 
138  .xf_name = "hbp_active_rm_fid",
139 
140  .xf_type = m0_fid_xc,
141 
142  .xf_tag = 0,
143  .xf_opaque = NULL,
145  .xf_read = NULL,
146  .xf_decor = {
148  }
149  };
151 
153  .xf_name = "hbp_active_rm_ep",
154 
155  .xf_type = m0_buf_xc,
156 
157  .xf_tag = 0,
158  .xf_opaque = NULL,
159  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_active_rm_ep),
160  .xf_read = NULL,
161  .xf_decor = {
163  }
164  };
166 
168  .xf_name = "hbp_control",
169 
170  .xf_type = &M0_XT_U32,
171 
172  .xf_tag = 0,
173  .xf_opaque = NULL,
174  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_control),
175  .xf_read = NULL,
176  .xf_decor = {
178  }
179  };
180  m0_xc_u32_init();
181 
183  .xf_name = "hbp_link_params",
184 
185  .xf_type = m0_ha_link_params_xc,
186 
187  .xf_tag = 0,
188  .xf_opaque = NULL,
189  .xf_offset = offsetof(struct m0_ha_entrypoint_rep_fop, hbp_link_params),
190  .xf_read = NULL,
191  .xf_decor = {
193  }
194  };
196 
198  .xf_name = "hbp_link_do_reconnect",
199 
200  .xf_type = &M0_XT_U64,
201 
202  .xf_tag = 0,
203  .xf_opaque = NULL,
205  .xf_read = NULL,
206  .xf_decor = {
208  }
209  };
210  m0_xc_u64_init();
211 
213  .xf_name = "hbp_disconnected_previously",
214 
215  .xf_type = &M0_XT_U32,
216 
217  .xf_tag = 0,
218  .xf_opaque = NULL,
220  .xf_read = NULL,
221  .xf_decor = {
223  }
224  };
225  m0_xc_u32_init();
226 
228  .xf_name = "hbp_cookie_actual",
229 
230  .xf_type = m0_ha_cookie_xc_xc,
231 
232  .xf_tag = 0,
233  .xf_opaque = NULL,
235  .xf_read = NULL,
236  .xf_decor = {
238  }
239  };
241 
243 }
244 
246 {
248  .xf_name = "erf_first_request",
249 
250  .xf_type = &M0_XT_U32,
251 
252  .xf_tag = 0,
253  .xf_opaque = NULL,
255  .xf_read = NULL,
256  .xf_decor = {
258  }
259  };
260  m0_xc_u32_init();
261 
263  .xf_name = "erf_generation",
264 
265  .xf_type = &M0_XT_U64,
266 
267  .xf_tag = 0,
268  .xf_opaque = NULL,
269  .xf_offset = offsetof(struct m0_ha_entrypoint_req_fop, erf_generation),
270  .xf_read = NULL,
271  .xf_decor = {
273  }
274  };
275  m0_xc_u64_init();
276 
278  .xf_name = "erf_process_fid",
279 
280  .xf_type = m0_fid_xc,
281 
282  .xf_tag = 0,
283  .xf_opaque = NULL,
284  .xf_offset = offsetof(struct m0_ha_entrypoint_req_fop, erf_process_fid),
285  .xf_read = NULL,
286  .xf_decor = {
288  }
289  };
291 
293  .xf_name = "erf_link_params",
294 
295  .xf_type = m0_ha_link_params_xc,
296 
297  .xf_tag = 0,
298  .xf_opaque = NULL,
299  .xf_offset = offsetof(struct m0_ha_entrypoint_req_fop, erf_link_params),
300  .xf_read = NULL,
301  .xf_decor = {
303  }
304  };
306 
308  .xf_name = "erf_git_rev_id",
309 
310  .xf_type = m0_buf_xc,
311 
312  .xf_tag = 0,
313  .xf_opaque = NULL,
314  .xf_offset = offsetof(struct m0_ha_entrypoint_req_fop, erf_git_rev_id),
315  .xf_read = NULL,
316  .xf_decor = {
318  }
319  };
321 
323  .xf_name = "erf_pid",
324 
325  .xf_type = &M0_XT_U64,
326 
327  .xf_tag = 0,
328  .xf_opaque = NULL,
329  .xf_offset = offsetof(struct m0_ha_entrypoint_req_fop, erf_pid),
330  .xf_read = NULL,
331  .xf_decor = {
333  }
334  };
335  m0_xc_u64_init();
336 
338  .xf_name = "erf_cookie_expected",
339 
340  .xf_type = m0_ha_cookie_xc_xc,
341 
342  .xf_tag = 0,
343  .xf_opaque = NULL,
345  .xf_read = NULL,
346  .xf_decor = {
348  }
349  };
351 
353 }
354 
355 M0_INTERNAL void m0_xc_ha_entrypoint_fops_init(void)
356 {
359 }
360 
361 M0_INTERNAL void m0_xc_ha_entrypoint_fops_fini(void)
362 {
363 }
struct m0_buf erf_git_rev_id
M0_INTERNAL void m0_xc_m0_fid_arr_struct_init(void)
Definition: fid_xc.c:99
struct m0_xcode_type * m0_ha_entrypoint_rep_fop_xc
struct m0_xcode_type * m0_buf_xc
Definition: buf_xc.c:10
#define NULL
Definition: misc.h:38
struct m0_buf hbp_active_rm_ep
struct m0_ha_cookie_xc hbp_cookie_actual
struct m0_xcode_field _child[7]
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
uint32_t hbp_disconnected_previously
uint64_t erf_pid
M0_INTERNAL void m0_xc_m0_buf_struct_init(void)
Definition: buf_xc.c:64
struct m0_fid erf_process_fid
M0_INTERNAL void m0_xc_m0_ha_entrypoint_rep_fop_struct_init(void)
M0_BASSERT(offsetof(struct _m0_ha_entrypoint_rep_fop_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_type * m0_bufs_xc
Definition: buf_xc.c:11
struct m0_xcode_type * m0_ha_entrypoint_req_fop_xc
M0_INTERNAL void m0_xc_m0_ha_cookie_xc_struct_init(void)
Definition: cookie_xc.c:43
static struct _m0_ha_entrypoint_req_fop_s _m0_ha_entrypoint_req_fop
struct m0_xcode_type _type
struct m0_xcode_type * m0_ha_cookie_xc_xc
Definition: cookie_xc.c:10
struct m0_xcode_field _child[10]
struct m0_ha_cookie_xc erf_cookie_expected
struct m0_ha_link_params erf_link_params
#define M0_POST(cond)
static struct _m0_ha_entrypoint_rep_fop_s _m0_ha_entrypoint_rep_fop
int32_t erf_first_request
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
M0_INTERNAL void m0_xc_m0_bufs_struct_init(void)
Definition: buf_xc.c:99
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
M0_INTERNAL void m0_xc_ha_entrypoint_fops_fini(void)
M0_INTERNAL void m0_xc_m0_ha_entrypoint_req_fop_struct_init(void)
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_xcode_type _type
uint32_t hbp_control
struct m0_ha_link_params hbp_link_params
void m0_xc_u32_init(void)
Definition: xcode.c:900
struct m0_xcode_type * m0_fid_arr_xc
Definition: fid_xc.c:11
M0_INTERNAL void m0_xc_ha_entrypoint_fops_init(void)
const char * xf_name
Definition: xcode.h:251
uint64_t erf_generation
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 hbp_active_rm_fid
uint32_t hbp_quorum
uint64_t hbp_link_do_reconnect
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_fid_arr hbp_confd_fids
struct m0_bufs hbp_confd_eps