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

Go to the source code of this file.

Data Structures

struct  _m0_tl_descr_s
 
struct  _m0_tl_s
 
struct  _m0_tlink_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_tl_descr_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_tl_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_tlink_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_tl_descr)==40U)
 
 M0_BASSERT (sizeof((struct m0_tl_descr *) 0) ->td_name==8U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_name)==0U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_link_offset)==8U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_link_magic_offset)==12U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_link_magic)==16U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_head_magic)==24U)
 
 M0_BASSERT (offsetof(struct m0_tl_descr, td_container_size)==32U)
 
 M0_BASSERT (sizeof(struct m0_tl)==24U)
 
 M0_BASSERT (sizeof((struct m0_tl *) 0) ->t_magic==8U)
 
 M0_BASSERT (offsetof(struct m0_tl, t_magic)==0U)
 
 M0_BASSERT (offsetof(struct m0_tl, t_head)==8U)
 
 M0_BASSERT (sizeof(struct m0_tlink)==16U)
 
 M0_BASSERT (sizeof((struct m0_tlink *) 0) ->t_link==16U)
 
 M0_BASSERT (offsetof(struct m0_tlink, t_link)==0U)
 
M0_INTERNAL void m0_xc_m0_tl_descr_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_tl_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_tlink_struct_init (void)
 
M0_INTERNAL void m0_xc_lib_tlist_init (void)
 
M0_INTERNAL void m0_xc_lib_tlist_fini (void)
 

Variables

struct m0_xcode_typem0_tl_descr_xc = &_m0_tl_descr._type
 
struct m0_xcode_typem0_tl_xc = &_m0_tl._type
 
struct m0_xcode_typem0_tlink_xc = &_m0_tlink._type
 
static struct _m0_tl_descr_s _m0_tl_descr
 
static struct _m0_tl_s _m0_tl
 
static struct _m0_tlink_s _m0_tlink
 

Function Documentation

◆ M0_BASSERT() [1/18]

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

◆ M0_BASSERT() [2/18]

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

◆ M0_BASSERT() [3/18]

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

◆ M0_BASSERT() [4/18]

M0_BASSERT ( sizeof(struct m0_tl_descr = =40U)

◆ M0_BASSERT() [5/18]

M0_BASSERT ( sizeof((struct m0_tl_descr *) 0) ->  td_name = =8U)

◆ M0_BASSERT() [6/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_name = =0U)

◆ M0_BASSERT() [7/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_link_offset = =8U)

◆ M0_BASSERT() [8/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_link_magic_offset = =12U)

◆ M0_BASSERT() [9/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_link_magic = =16U)

◆ M0_BASSERT() [10/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_head_magic = =24U)

◆ M0_BASSERT() [11/18]

M0_BASSERT ( offsetof(struct m0_tl_descr, td_container_size = =32U)

◆ M0_BASSERT() [12/18]

M0_BASSERT ( sizeof(struct m0_tl = =24U)

◆ M0_BASSERT() [13/18]

M0_BASSERT ( sizeof((struct m0_tl *) 0) ->  t_magic = =8U)

◆ M0_BASSERT() [14/18]

M0_BASSERT ( offsetof(struct m0_tl, t_magic = =0U)

◆ M0_BASSERT() [15/18]

M0_BASSERT ( offsetof(struct m0_tl, t_head = =8U)

◆ M0_BASSERT() [16/18]

M0_BASSERT ( sizeof(struct m0_tlink = =16U)

◆ M0_BASSERT() [17/18]

M0_BASSERT ( sizeof((struct m0_tlink *) 0) ->  t_link = =16U)

◆ M0_BASSERT() [18/18]

M0_BASSERT ( offsetof(struct m0_tlink, t_link = =0U)

◆ m0_xc_lib_tlist_fini()

M0_INTERNAL void m0_xc_lib_tlist_fini ( void  )

Definition at line 310 of file tlist_xc.c.

◆ m0_xc_lib_tlist_init()

M0_INTERNAL void m0_xc_lib_tlist_init ( void  )

Definition at line 297 of file tlist_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_tl_descr_struct_init()

M0_INTERNAL void m0_xc_m0_tl_descr_struct_init ( void  )

Definition at line 132 of file tlist_xc.c.

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

◆ m0_xc_m0_tl_struct_init()

M0_INTERNAL void m0_xc_m0_tl_struct_init ( void  )

Definition at line 229 of file tlist_xc.c.

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

◆ m0_xc_m0_tlink_struct_init()

M0_INTERNAL void m0_xc_m0_tlink_struct_init ( void  )

Definition at line 271 of file tlist_xc.c.

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

Variable Documentation

◆ _m0_tl

struct _m0_tl_s _m0_tl
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_tl",
.xct_sizeof = sizeof (struct m0_tl),
.xct_nr = 2,
}
}
Definition: tlist.h:251

◆ _m0_tl_descr

struct _m0_tl_descr_s _m0_tl_descr
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_tl_descr",
.xct_sizeof = sizeof (struct m0_tl_descr),
.xct_nr = 6,
}
}

◆ _m0_tlink

struct _m0_tlink_s _m0_tlink
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_tlink",
.xct_sizeof = sizeof (struct m0_tlink),
.xct_nr = 1,
}
}

◆ m0_tl_descr_xc

struct m0_xcode_type * m0_tl_descr_xc = &_m0_tl_descr._type

Definition at line 11 of file tlist_xc.c.

◆ m0_tl_xc

struct m0_xcode_type * m0_tl_xc = &_m0_tl._type

Definition at line 14 of file tlist_xc.c.

◆ m0_tlink_xc

struct m0_xcode_type * m0_tlink_xc = &_m0_tlink._type

Definition at line 17 of file tlist_xc.c.