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

Go to the source code of this file.

Data Structures

struct  _m0_be_list_link_s
 
struct  _m0_be_list_head_s
 
struct  _m0_be_list_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_be_list_link_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_list_head_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_list_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_be_list_link)==16U)
 
 M0_BASSERT (sizeof((struct m0_be_list_link *) 0) ->bll_next==8U)
 
 M0_BASSERT (offsetof(struct m0_be_list_link, bll_next)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_list_link, bll_prev)==8U)
 
 M0_BASSERT (sizeof(struct m0_be_list_head)==16U)
 
 M0_BASSERT (sizeof((struct m0_be_list_head *) 0) ->blh_head==8U)
 
 M0_BASSERT (offsetof(struct m0_be_list_head, blh_head)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_list_head, blh_tail)==8U)
 
 M0_BASSERT (sizeof(struct m0_be_list)==56U)
 
 M0_BASSERT (sizeof((struct m0_be_list *) 0) ->bl_format_header==16U)
 
 M0_BASSERT (offsetof(struct m0_be_list, bl_format_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_list, bl_head)==16U)
 
 M0_BASSERT (offsetof(struct m0_be_list, bl_magic)==32U)
 
 M0_BASSERT (offsetof(struct m0_be_list, bl_format_footer)==40U)
 
M0_INTERNAL void m0_xc_m0_be_list_link_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_list_head_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_list_struct_init (void)
 
M0_INTERNAL void m0_xc_be_list_init (void)
 
M0_INTERNAL void m0_xc_be_list_fini (void)
 

Variables

struct m0_xcode_typem0_be_list_link_xc = &_m0_be_list_link._type
 
struct m0_xcode_typem0_be_list_head_xc = &_m0_be_list_head._type
 
struct m0_xcode_typem0_be_list_xc = &_m0_be_list._type
 
static struct _m0_be_list_link_s _m0_be_list_link
 
static struct _m0_be_list_head_s _m0_be_list_head
 
static struct _m0_be_list_s _m0_be_list
 

Function Documentation

◆ M0_BASSERT() [1/17]

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

◆ M0_BASSERT() [2/17]

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

◆ M0_BASSERT() [3/17]

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

◆ M0_BASSERT() [4/17]

M0_BASSERT ( sizeof(struct m0_be_list_link = =16U)

◆ M0_BASSERT() [5/17]

M0_BASSERT ( sizeof((struct m0_be_list_link *) 0) ->  bll_next = =8U)

◆ M0_BASSERT() [6/17]

M0_BASSERT ( offsetof(struct m0_be_list_link, bll_next = =0U)

◆ M0_BASSERT() [7/17]

M0_BASSERT ( offsetof(struct m0_be_list_link, bll_prev = =8U)

◆ M0_BASSERT() [8/17]

M0_BASSERT ( sizeof(struct m0_be_list_head = =16U)

◆ M0_BASSERT() [9/17]

M0_BASSERT ( sizeof((struct m0_be_list_head *) 0) ->  blh_head = =8U)

◆ M0_BASSERT() [10/17]

M0_BASSERT ( offsetof(struct m0_be_list_head, blh_head = =0U)

◆ M0_BASSERT() [11/17]

M0_BASSERT ( offsetof(struct m0_be_list_head, blh_tail = =8U)

◆ M0_BASSERT() [12/17]

M0_BASSERT ( sizeof(struct m0_be_list = =56U)

◆ M0_BASSERT() [13/17]

M0_BASSERT ( sizeof((struct m0_be_list *) 0) ->  bl_format_header = =16U)

◆ M0_BASSERT() [14/17]

M0_BASSERT ( offsetof(struct m0_be_list, bl_format_header = =0U)

◆ M0_BASSERT() [15/17]

M0_BASSERT ( offsetof(struct m0_be_list, bl_head = =16U)

◆ M0_BASSERT() [16/17]

M0_BASSERT ( offsetof(struct m0_be_list, bl_magic = =32U)

◆ M0_BASSERT() [17/17]

M0_BASSERT ( offsetof(struct m0_be_list, bl_format_footer = =40U)

◆ m0_xc_be_list_fini()

M0_INTERNAL void m0_xc_be_list_fini ( void  )

Definition at line 306 of file list_xc.c.

◆ m0_xc_be_list_init()

M0_INTERNAL void m0_xc_be_list_init ( void  )

Definition at line 293 of file list_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_be_list_head_struct_init()

M0_INTERNAL void m0_xc_m0_be_list_head_struct_init ( void  )

Definition at line 175 of file list_xc.c.

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

◆ m0_xc_m0_be_list_link_struct_init()

M0_INTERNAL void m0_xc_m0_be_list_link_struct_init ( void  )

Definition at line 128 of file list_xc.c.

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

◆ m0_xc_m0_be_list_struct_init()

M0_INTERNAL void m0_xc_m0_be_list_struct_init ( void  )

Definition at line 222 of file list_xc.c.

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

Variable Documentation

◆ _m0_be_list

struct _m0_be_list_s _m0_be_list
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_list",
.xct_sizeof = sizeof (struct m0_be_list),
.xct_nr = 4,
}
}

◆ _m0_be_list_head

struct _m0_be_list_head_s _m0_be_list_head
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_list_head",
.xct_sizeof = sizeof (struct m0_be_list_head),
.xct_nr = 2,
}
}

◆ _m0_be_list_link

struct _m0_be_list_link_s _m0_be_list_link
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_list_link",
.xct_sizeof = sizeof (struct m0_be_list_link),
.xct_nr = 2,
}
}

◆ m0_be_list_head_xc

struct m0_xcode_type * m0_be_list_head_xc = &_m0_be_list_head._type

Definition at line 14 of file list_xc.c.

◆ m0_be_list_link_xc

struct m0_xcode_type * m0_be_list_link_xc = &_m0_be_list_link._type

Definition at line 11 of file list_xc.c.

◆ m0_be_list_xc

struct m0_xcode_type * m0_be_list_xc = &_m0_be_list._type

Definition at line 17 of file list_xc.c.