Motr  M0
session_fops_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from rpc/session_fops.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "rpc/session_fops.h"
8 #include "rpc/session_fops_xc.h"
9 
18 
23  ._type = {
25  .xct_name = "m0_rpc_fop_conn_establish",
26  .xct_sizeof = sizeof (struct m0_rpc_fop_conn_establish),
27  .xct_nr = 1,
28  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
29  }
30 };
31 
34  offsetof(struct m0_xcode_type, xct_child[0]));
35 
40  ._type = {
42  .xct_name = "m0_rpc_fop_conn_establish_rep",
43  .xct_sizeof = sizeof (struct m0_rpc_fop_conn_establish_rep),
44  .xct_nr = 2,
45  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
46  }
47 };
48 
51  offsetof(struct m0_xcode_type, xct_child[0]));
52 
57  ._type = {
59  .xct_name = "m0_rpc_fop_conn_terminate",
60  .xct_sizeof = sizeof (struct m0_rpc_fop_conn_terminate),
61  .xct_nr = 1,
62  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
63  }
64 };
65 
68  offsetof(struct m0_xcode_type, xct_child[0]));
69 
74  ._type = {
76  .xct_name = "m0_rpc_fop_conn_terminate_rep",
77  .xct_sizeof = sizeof (struct m0_rpc_fop_conn_terminate_rep),
78  .xct_nr = 2,
79  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
80  }
81 };
82 
85  offsetof(struct m0_xcode_type, xct_child[0]));
86 
91  ._type = {
93  .xct_name = "m0_rpc_fop_session_establish",
94  .xct_sizeof = sizeof (struct m0_rpc_fop_session_establish),
95  .xct_nr = 1,
96  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
97  }
98 };
99 
102  offsetof(struct m0_xcode_type, xct_child[0]));
103 
108  ._type = {
110  .xct_name = "m0_rpc_fop_session_establish_rep",
111  .xct_sizeof = sizeof (struct m0_rpc_fop_session_establish_rep),
112  .xct_nr = 3,
113  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
114  }
115 };
116 
119  offsetof(struct m0_xcode_type, xct_child[0]));
120 
125  ._type = {
127  .xct_name = "m0_rpc_fop_session_terminate",
128  .xct_sizeof = sizeof (struct m0_rpc_fop_session_terminate),
129  .xct_nr = 2,
130  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
131  }
132 };
133 
136  offsetof(struct m0_xcode_type, xct_child[0]));
137 
142  ._type = {
144  .xct_name = "m0_rpc_fop_session_terminate_rep",
145  .xct_sizeof = sizeof (struct m0_rpc_fop_session_terminate_rep),
146  .xct_nr = 3,
147  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_RPC,
148  }
149 };
150 
153  offsetof(struct m0_xcode_type, xct_child[0]));
154 
155 
156 M0_BASSERT(sizeof(struct m0_rpc_fop_conn_establish) == 64U);
157 
158 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_establish *)0)->rce_protocol == 64U);
160 
161 M0_BASSERT(sizeof(struct m0_rpc_fop_conn_establish_rep) == 16U);
162 
163 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_establish_rep *)0)->rcer_rc == 4U);
165 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_establish_rep *)0)->rcer_sender_id == 8U);
167 
168 M0_BASSERT(sizeof(struct m0_rpc_fop_conn_terminate) == 8U);
169 
170 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_terminate *)0)->ct_sender_id == 8U);
172 
173 M0_BASSERT(sizeof(struct m0_rpc_fop_conn_terminate_rep) == 16U);
174 
175 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_terminate_rep *)0)->ctr_rc == 4U);
177 M0_BASSERT(sizeof ((struct m0_rpc_fop_conn_terminate_rep *)0)->ctr_sender_id == 8U);
179 
180 M0_BASSERT(sizeof(struct m0_rpc_fop_session_establish) == 8U);
181 
182 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_establish *)0)->rse_sender_id == 8U);
184 
185 M0_BASSERT(sizeof(struct m0_rpc_fop_session_establish_rep) == 24U);
186 
187 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_establish_rep *)0)->rser_rc == 4U);
189 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_establish_rep *)0)->rser_session_id == 8U);
191 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_establish_rep *)0)->rser_sender_id == 8U);
193 
194 M0_BASSERT(sizeof(struct m0_rpc_fop_session_terminate) == 16U);
195 
196 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_terminate *)0)->rst_sender_id == 8U);
198 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_terminate *)0)->rst_session_id == 8U);
200 
201 M0_BASSERT(sizeof(struct m0_rpc_fop_session_terminate_rep) == 24U);
202 
203 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_terminate_rep *)0)->rstr_rc == 4U);
205 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_terminate_rep *)0)->rstr_session_id == 8U);
207 M0_BASSERT(sizeof ((struct m0_rpc_fop_session_terminate_rep *)0)->rstr_sender_id == 8U);
209 
210 
211 
213 {
215  .xf_name = "rce_protocol",
216 
217  .xf_type = m0_protocol_id_xc,
218 
219  .xf_tag = 0,
220  .xf_opaque = NULL,
221  .xf_offset = offsetof(struct m0_rpc_fop_conn_establish, rce_protocol),
222  .xf_read = NULL,
223  .xf_decor = {
225  }
226  };
228 
230 }
231 
233 {
235  .xf_name = "rcer_rc",
236 
237  .xf_type = &M0_XT_U32,
238 
239  .xf_tag = 0,
240  .xf_opaque = NULL,
241  .xf_offset = offsetof(struct m0_rpc_fop_conn_establish_rep, rcer_rc),
242  .xf_read = NULL,
243  .xf_decor = {
245  }
246  };
247  m0_xc_u32_init();
248 
250  .xf_name = "rcer_sender_id",
251 
252  .xf_type = &M0_XT_U64,
253 
254  .xf_tag = 0,
255  .xf_opaque = NULL,
257  .xf_read = NULL,
258  .xf_decor = {
260  }
261  };
262  m0_xc_u64_init();
263 
265 }
266 
268 {
270  .xf_name = "ct_sender_id",
271 
272  .xf_type = &M0_XT_U64,
273 
274  .xf_tag = 0,
275  .xf_opaque = NULL,
276  .xf_offset = offsetof(struct m0_rpc_fop_conn_terminate, ct_sender_id),
277  .xf_read = NULL,
278  .xf_decor = {
280  }
281  };
282  m0_xc_u64_init();
283 
285 }
286 
288 {
290  .xf_name = "ctr_rc",
291 
292  .xf_type = &M0_XT_U32,
293 
294  .xf_tag = 0,
295  .xf_opaque = NULL,
296  .xf_offset = offsetof(struct m0_rpc_fop_conn_terminate_rep, ctr_rc),
297  .xf_read = NULL,
298  .xf_decor = {
300  }
301  };
302  m0_xc_u32_init();
303 
305  .xf_name = "ctr_sender_id",
306 
307  .xf_type = &M0_XT_U64,
308 
309  .xf_tag = 0,
310  .xf_opaque = NULL,
312  .xf_read = NULL,
313  .xf_decor = {
315  }
316  };
317  m0_xc_u64_init();
318 
320 }
321 
323 {
325  .xf_name = "rse_sender_id",
326 
327  .xf_type = &M0_XT_U64,
328 
329  .xf_tag = 0,
330  .xf_opaque = NULL,
332  .xf_read = NULL,
333  .xf_decor = {
335  }
336  };
337  m0_xc_u64_init();
338 
340 }
341 
343 {
345  .xf_name = "rser_rc",
346 
347  .xf_type = &M0_XT_U32,
348 
349  .xf_tag = 0,
350  .xf_opaque = NULL,
351  .xf_offset = offsetof(struct m0_rpc_fop_session_establish_rep, rser_rc),
352  .xf_read = NULL,
353  .xf_decor = {
355  }
356  };
357  m0_xc_u32_init();
358 
360  .xf_name = "rser_session_id",
361 
362  .xf_type = &M0_XT_U64,
363 
364  .xf_tag = 0,
365  .xf_opaque = NULL,
367  .xf_read = NULL,
368  .xf_decor = {
370  }
371  };
372  m0_xc_u64_init();
373 
375  .xf_name = "rser_sender_id",
376 
377  .xf_type = &M0_XT_U64,
378 
379  .xf_tag = 0,
380  .xf_opaque = NULL,
382  .xf_read = NULL,
383  .xf_decor = {
385  }
386  };
387  m0_xc_u64_init();
388 
390 }
391 
393 {
395  .xf_name = "rst_sender_id",
396 
397  .xf_type = &M0_XT_U64,
398 
399  .xf_tag = 0,
400  .xf_opaque = NULL,
402  .xf_read = NULL,
403  .xf_decor = {
405  }
406  };
407  m0_xc_u64_init();
408 
410  .xf_name = "rst_session_id",
411 
412  .xf_type = &M0_XT_U64,
413 
414  .xf_tag = 0,
415  .xf_opaque = NULL,
417  .xf_read = NULL,
418  .xf_decor = {
420  }
421  };
422  m0_xc_u64_init();
423 
425 }
426 
428 {
430  .xf_name = "rstr_rc",
431 
432  .xf_type = &M0_XT_U32,
433 
434  .xf_tag = 0,
435  .xf_opaque = NULL,
436  .xf_offset = offsetof(struct m0_rpc_fop_session_terminate_rep, rstr_rc),
437  .xf_read = NULL,
438  .xf_decor = {
440  }
441  };
442  m0_xc_u32_init();
443 
445  .xf_name = "rstr_session_id",
446 
447  .xf_type = &M0_XT_U64,
448 
449  .xf_tag = 0,
450  .xf_opaque = NULL,
452  .xf_read = NULL,
453  .xf_decor = {
455  }
456  };
457  m0_xc_u64_init();
458 
460  .xf_name = "rstr_sender_id",
461 
462  .xf_type = &M0_XT_U64,
463 
464  .xf_tag = 0,
465  .xf_opaque = NULL,
467  .xf_read = NULL,
468  .xf_decor = {
470  }
471  };
472  m0_xc_u64_init();
473 
475 }
476 
477 M0_INTERNAL void m0_xc_rpc_session_fops_init(void)
478 {
487 }
488 
489 M0_INTERNAL void m0_xc_rpc_session_fops_fini(void)
490 {
491 }
struct m0_xcode_type * m0_rpc_fop_conn_terminate_xc
struct m0_xcode_type * m0_rpc_fop_conn_terminate_rep_xc
#define NULL
Definition: misc.h:38
struct m0_xcode_field _child[2]
M0_INTERNAL void m0_xc_m0_rpc_fop_conn_terminate_rep_struct_init(void)
uint64_t ct_sender_id
Definition: session_fops.h:70
int32_t rcer_rc
Definition: session_fops.h:71
M0_INTERNAL void m0_xc_m0_rpc_fop_conn_establish_rep_struct_init(void)
struct m0_protocol_id rce_protocol
Definition: session_fops.h:71
uint64_t rst_sender_id
Definition: session_fops.h:71
M0_INTERNAL void m0_xc_m0_rpc_fop_session_terminate_rep_struct_init(void)
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
struct m0_xcode_type * m0_protocol_id_xc
Definition: protocol_xc.c:10
struct m0_xcode_type * m0_rpc_fop_session_establish_xc
struct m0_xcode_type * m0_rpc_fop_conn_establish_xc
static struct _m0_rpc_fop_conn_establish_s _m0_rpc_fop_conn_establish
struct m0_xcode_field _child[2]
struct m0_xcode_type * m0_rpc_fop_session_terminate_rep_xc
M0_INTERNAL void m0_xc_m0_protocol_id_struct_init(void)
Definition: protocol_xc.c:37
static struct _m0_rpc_fop_session_establish_s _m0_rpc_fop_session_establish
struct m0_xcode_type _type
static struct _m0_rpc_fop_session_establish_rep_s _m0_rpc_fop_session_establish_rep
struct m0_xcode_type * m0_rpc_fop_session_establish_rep_xc
int32_t rser_rc
Definition: session_fops.h:71
static struct _m0_rpc_fop_conn_establish_rep_s _m0_rpc_fop_conn_establish_rep
struct m0_xcode_field _child[1]
M0_INTERNAL void m0_xc_m0_rpc_fop_session_terminate_struct_init(void)
M0_INTERNAL void m0_xc_m0_rpc_fop_session_establish_struct_init(void)
struct m0_xcode_field _child[2]
static struct _m0_rpc_fop_session_terminate_rep_s _m0_rpc_fop_session_terminate_rep
uint64_t rse_sender_id
Definition: session_fops.h:70
uint64_t rcer_sender_id
Definition: session_fops.h:76
static struct _m0_rpc_fop_conn_terminate_s _m0_rpc_fop_conn_terminate
struct m0_xcode_field _child[1]
uint64_t rser_sender_id
Definition: session_fops.h:80
uint64_t ctr_sender_id
Definition: session_fops.h:75
struct m0_xcode_field _child[3]
#define M0_POST(cond)
M0_INTERNAL void m0_xc_rpc_session_fops_fini(void)
int32_t rstr_rc
Definition: session_fops.h:71
static struct _m0_rpc_fop_conn_terminate_rep_s _m0_rpc_fop_conn_terminate_rep
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
M0_INTERNAL void m0_xc_m0_rpc_fop_session_establish_rep_struct_init(void)
M0_BASSERT(offsetof(struct _m0_rpc_fop_conn_establish_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
struct m0_xcode_field _child[1]
void m0_xc_u64_init(void)
Definition: xcode.c:904
struct m0_xcode_type _type
M0_INTERNAL void m0_xc_m0_rpc_fop_conn_establish_struct_init(void)
uint64_t rstr_sender_id
Definition: session_fops.h:80
struct m0_xcode_type * m0_rpc_fop_conn_establish_rep_xc
uint64_t rser_session_id
Definition: session_fops.h:76
uint64_t rst_session_id
Definition: session_fops.h:75
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
uint64_t rstr_session_id
Definition: session_fops.h:75
struct m0_xcode_field _child[3]
M0_INTERNAL void m0_xc_m0_rpc_fop_conn_terminate_struct_init(void)
void m0_xc_u32_init(void)
Definition: xcode.c:900
const char * xf_name
Definition: xcode.h:251
int32_t ctr_rc
Definition: session_fops.h:71
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
static struct _m0_rpc_fop_session_terminate_s _m0_rpc_fop_session_terminate
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_xcode_type * m0_rpc_fop_session_terminate_xc
M0_INTERNAL void m0_xc_rpc_session_fops_init(void)