Motr  M0
fl_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from be/fl.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "be/fl.h"
8 #include "be/fl_xc.h"
9 
10 #if !defined(__KERNEL__)
12 #endif
13 #if !defined(__KERNEL__)
15 #endif
16 
17 #if !defined(__KERNEL__)
18 static struct _m0_be_fl_size_s {
21 } _m0_be_fl_size = {
22  ._type = {
24  .xct_name = "m0_be_fl_size",
25  .xct_sizeof = sizeof (struct m0_be_fl_size),
26  .xct_nr = 1,
27  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
28  }
29 };
30 
32 M0_BASSERT(offsetof(struct _m0_be_fl_size_s, _child[0]) ==
33  offsetof(struct m0_xcode_type, xct_child[0]));
34 #endif
35 
36 #if !defined(__KERNEL__)
37 static struct _m0_be_fl_s {
40 } _m0_be_fl = {
41  ._type = {
43  .xct_name = "m0_be_fl",
44  .xct_sizeof = sizeof (struct m0_be_fl),
45  .xct_nr = 1,
46  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
47  }
48 };
49 
51 M0_BASSERT(offsetof(struct _m0_be_fl_s, _child[0]) ==
52  offsetof(struct m0_xcode_type, xct_child[0]));
53 #endif
54 
55 
56 #if !defined(__KERNEL__)
57 M0_BASSERT(sizeof(struct m0_be_fl_size) == 56U);
58 #endif
59 
60 #if !defined(__KERNEL__)
61 M0_BASSERT(sizeof ((struct m0_be_fl_size *)0)->bfs_list == 56U);
63 #endif
64 
65 #if !defined(__KERNEL__)
66 M0_BASSERT(sizeof(struct m0_be_fl) == 7224U);
67 #endif
68 
69 #if !defined(__KERNEL__)
70 M0_BASSERT(sizeof ((struct m0_be_fl *)0)->bfl_free == 7224U);
71 M0_BASSERT(offsetof(struct m0_be_fl, bfl_free) == 0U);
72 #endif
73 
74 
75 
76 #if !defined(__KERNEL__)
77 M0_INTERNAL void m0_xc_m0_be_fl_size_struct_init(void)
78 {
79  _m0_be_fl_size._child[0] = (struct m0_xcode_field) {
80  .xf_name = "bfs_list",
81 #ifdef __KERNEL__
82  .xf_type = &M0_XT_VOID,
83 #else
84 
85  .xf_type = m0_be_list_xc,
86 #endif
87  .xf_tag = 0,
88  .xf_opaque = NULL,
89  .xf_offset = offsetof(struct m0_be_fl_size, bfs_list),
90  .xf_read = NULL,
91  .xf_decor = {
93  }
94  };
95 #if !defined(__KERNEL__)
97 #endif
98 
100 }
101 #endif
102 
103 #if !defined(__KERNEL__)
104 M0_INTERNAL void m0_xc_m0_be_fl_struct_init(void)
105 {
106  _m0_be_fl._child[0] = (struct m0_xcode_field) {
107  .xf_name = "bfl_free",
108 
109  .xf_type = m0_be_fl_size_xc,
110 
111  .xf_tag = 129,
112  .xf_opaque = NULL,
113  .xf_offset = offsetof(struct m0_be_fl, bfl_free),
114  .xf_read = NULL,
115  .xf_decor = {
117  }
118  };
120 
122 }
123 #endif
124 
125 M0_INTERNAL void m0_xc_be_fl_init(void)
126 {
127 #if !defined(__KERNEL__)
129 #endif
130 #if !defined(__KERNEL__)
132 #endif
133 }
134 
135 M0_INTERNAL void m0_xc_be_fl_fini(void)
136 {
137 }
M0_INTERNAL void m0_xc_m0_be_fl_struct_init(void)
Definition: fl_xc.c:104
#define NULL
Definition: misc.h:38
M0_INTERNAL void m0_xc_be_fl_init(void)
Definition: fl_xc.c:125
M0_INTERNAL void m0_xc_m0_be_fl_size_struct_init(void)
Definition: fl_xc.c:77
struct m0_xcode_type * m0_be_fl_xc
Definition: fl_xc.c:14
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
static struct _m0_be_fl_s _m0_be_fl
Definition: fl.h:67
struct m0_xcode_field _child[1]
Definition: fl_xc.c:39
const struct m0_xcode_type M0_XT_VOID
Definition: xcode.c:916
struct m0_xcode_type * m0_be_fl_size_xc
Definition: fl_xc.c:11
#define M0_POST(cond)
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
struct m0_be_fl_size bfl_free[M0_BE_FL_NR+1]
Definition: fl.h:56
M0_INTERNAL void m0_xc_be_fl_fini(void)
Definition: fl_xc.c:135
struct m0_xcode_field _child[1]
Definition: fl_xc.c:20
M0_INTERNAL void m0_xc_m0_be_list_struct_init(void)
Definition: list_xc.c:222
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
static struct _m0_be_fl_size_s _m0_be_fl_size
struct m0_xcode_type * m0_be_list_xc
Definition: list_xc.c:17
struct m0_xcode_type _type
Definition: fl_xc.c:38
const char * xf_name
Definition: xcode.h:251
struct m0_xcode_type _type
Definition: fl_xc.c:19
struct m0_be_list bfs_list
Definition: fl.h:48
#define offsetof(typ, memb)
Definition: misc.h:29
M0_BASSERT(offsetof(struct _m0_be_fl_size_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))