Motr  M0
fid_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "fid/fid.h"
#include "fid/fid_xc.h"
Include dependency graph for fid_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_fid_s
 
struct  _m0_fid_arr_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_fid_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fid_arr_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_fid)==16U)
 
 M0_BASSERT (sizeof((struct m0_fid *) 0) ->f_container==8U)
 
 M0_BASSERT (offsetof(struct m0_fid, f_container)==0U)
 
 M0_BASSERT (offsetof(struct m0_fid, f_key)==8U)
 
 M0_BASSERT (sizeof(struct m0_fid_arr)==16U)
 
 M0_BASSERT (sizeof((struct m0_fid_arr *) 0) ->af_count==4U)
 
 M0_BASSERT (offsetof(struct m0_fid_arr, af_count)==0U)
 
 M0_BASSERT (offsetof(struct m0_fid_arr, af_elems)==8U)
 
M0_INTERNAL void m0_xc_m0_fid_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fid_arr_struct_init (void)
 
M0_INTERNAL void m0_xc_fid_fid_init (void)
 
M0_INTERNAL void m0_xc_fid_fid_fini (void)
 

Variables

struct m0_xcode_typem0_fid_xc = &_m0_fid._type
 
struct m0_xcode_typem0_fid_arr_xc = &_m0_fid_arr._type
 
static struct _m0_fid_s _m0_fid
 
static struct _m0_fid_arr_s _m0_fid_arr
 

Function Documentation

◆ M0_BASSERT() [1/10]

M0_BASSERT ( offsetof(struct _m0_fid_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [2/10]

M0_BASSERT ( offsetof(struct _m0_fid_arr_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [3/10]

M0_BASSERT ( sizeof(struct m0_fid = =16U)

◆ M0_BASSERT() [4/10]

M0_BASSERT ( sizeof((struct m0_fid *) 0) ->  f_container = =8U)

◆ M0_BASSERT() [5/10]

M0_BASSERT ( offsetof(struct m0_fid, f_container = =0U)

◆ M0_BASSERT() [6/10]

M0_BASSERT ( offsetof(struct m0_fid, f_key = =8U)

◆ M0_BASSERT() [7/10]

M0_BASSERT ( sizeof(struct m0_fid_arr = =16U)

◆ M0_BASSERT() [8/10]

M0_BASSERT ( sizeof((struct m0_fid_arr *) 0) ->  af_count = =4U)

◆ M0_BASSERT() [9/10]

M0_BASSERT ( offsetof(struct m0_fid_arr, af_count = =0U)

◆ M0_BASSERT() [10/10]

M0_BASSERT ( offsetof(struct m0_fid_arr, af_elems = =8U)

◆ m0_xc_fid_fid_fini()

M0_INTERNAL void m0_xc_fid_fid_fini ( void  )

Definition at line 140 of file fid_xc.c.

◆ m0_xc_fid_fid_init()

M0_INTERNAL void m0_xc_fid_fid_init ( void  )

Definition at line 134 of file fid_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_fid_arr_struct_init()

M0_INTERNAL void m0_xc_m0_fid_arr_struct_init ( void  )

Definition at line 99 of file fid_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fid_struct_init()

M0_INTERNAL void m0_xc_m0_fid_struct_init ( void  )

Definition at line 64 of file fid_xc.c.

Here is the call graph for this function:

Variable Documentation

◆ _m0_fid

struct _m0_fid_s _m0_fid
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fid",
.xct_sizeof = sizeof (struct m0_fid),
.xct_nr = 2,
}
}
Definition: fid.h:38

◆ _m0_fid_arr

struct _m0_fid_arr_s _m0_fid_arr
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_fid_arr",
.xct_sizeof = sizeof (struct m0_fid_arr),
.xct_nr = 2,
}
}
Definition: fid.h:43

◆ m0_fid_arr_xc

struct m0_xcode_type * m0_fid_arr_xc = &_m0_fid_arr._type

Definition at line 11 of file fid_xc.c.

◆ m0_fid_xc

struct m0_xcode_type * m0_fid_xc = &_m0_fid._type

Definition at line 10 of file fid_xc.c.