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

Go to the source code of this file.

Data Structures

struct  _m0_be_btree_s
 
struct  _m0_be_btree_backlink_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_be_btree_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_btree_backlink_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_be_btree)==256U)
 
 M0_BASSERT (sizeof((struct m0_be_btree *) 0) ->bb_header==16U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_cookie_gen)==16U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_backlink)==24U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_root)==72U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_footer)==80U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_lock)==96U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_seg)==240U)
 
 M0_BASSERT (offsetof(struct m0_be_btree, bb_ops)==248U)
 
 M0_BASSERT (sizeof(struct m0_be_btree_backlink)==48U)
 
 M0_BASSERT (sizeof((struct m0_be_btree_backlink *) 0) ->bli_tree==16U)
 
 M0_BASSERT (offsetof(struct m0_be_btree_backlink, bli_tree)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_btree_backlink, bli_type)==16U)
 
 M0_BASSERT (offsetof(struct m0_be_btree_backlink, bli_gen)==24U)
 
 M0_BASSERT (offsetof(struct m0_be_btree_backlink, bli_fid)==32U)
 
M0_INTERNAL void m0_xc_m0_be_btree_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_btree_backlink_struct_init (void)
 
M0_INTERNAL void m0_xc_be_btree_init (void)
 
M0_INTERNAL void m0_xc_be_btree_fini (void)
 

Variables

struct m0_xcode_typem0_be_btree_xc = &_m0_be_btree._type
 
struct m0_xcode_typem0_be_btree_backlink_xc = &_m0_be_btree_backlink._type
 
static struct _m0_be_btree_s _m0_be_btree
 
static struct _m0_be_btree_backlink_s _m0_be_btree_backlink
 
const struct m0_xcode_enum_val m0_be_btree_type_data []
 
struct m0_xcode_enum m0_xc_m0_be_btree_type_enum
 

Function Documentation

◆ M0_BASSERT() [1/18]

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

◆ M0_BASSERT() [2/18]

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

◆ M0_BASSERT() [3/18]

M0_BASSERT ( sizeof(struct m0_be_btree = =256U)

◆ M0_BASSERT() [4/18]

M0_BASSERT ( sizeof((struct m0_be_btree *) 0) ->  bb_header = =16U)

◆ M0_BASSERT() [5/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_header = =0U)

◆ M0_BASSERT() [6/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_cookie_gen = =16U)

◆ M0_BASSERT() [7/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_backlink = =24U)

◆ M0_BASSERT() [8/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_root = =72U)

◆ M0_BASSERT() [9/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_footer = =80U)

◆ M0_BASSERT() [10/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_lock = =96U)

◆ M0_BASSERT() [11/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_seg = =240U)

◆ M0_BASSERT() [12/18]

M0_BASSERT ( offsetof(struct m0_be_btree, bb_ops = =248U)

◆ M0_BASSERT() [13/18]

M0_BASSERT ( sizeof(struct m0_be_btree_backlink = =48U)

◆ M0_BASSERT() [14/18]

M0_BASSERT ( sizeof((struct m0_be_btree_backlink *) 0) ->  bli_tree = =16U)

◆ M0_BASSERT() [15/18]

M0_BASSERT ( offsetof(struct m0_be_btree_backlink, bli_tree = =0U)

◆ M0_BASSERT() [16/18]

M0_BASSERT ( offsetof(struct m0_be_btree_backlink, bli_type = =16U)

◆ M0_BASSERT() [17/18]

M0_BASSERT ( offsetof(struct m0_be_btree_backlink, bli_gen = =24U)

◆ M0_BASSERT() [18/18]

M0_BASSERT ( offsetof(struct m0_be_btree_backlink, bli_fid = =32U)

◆ m0_xc_be_btree_fini()

M0_INTERNAL void m0_xc_be_btree_fini ( void  )

Definition at line 354 of file btree_xc.c.

◆ m0_xc_be_btree_init()

M0_INTERNAL void m0_xc_be_btree_init ( void  )

Definition at line 344 of file btree_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_be_btree_backlink_struct_init()

M0_INTERNAL void m0_xc_m0_be_btree_backlink_struct_init ( void  )

Definition at line 278 of file btree_xc.c.

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

◆ m0_xc_m0_be_btree_struct_init()

M0_INTERNAL void m0_xc_m0_be_btree_struct_init ( void  )

Definition at line 141 of file btree_xc.c.

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

Variable Documentation

◆ _m0_be_btree

struct _m0_be_btree_s _m0_be_btree
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_btree",
.xct_sizeof = sizeof (struct m0_be_btree),
.xct_nr = 8,
}
}

◆ _m0_be_btree_backlink

struct _m0_be_btree_backlink_s _m0_be_btree_backlink
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_btree_backlink",
.xct_sizeof = sizeof (struct m0_be_btree_backlink),
.xct_nr = 4,
}
}

◆ m0_be_btree_backlink_xc

struct m0_xcode_type * m0_be_btree_backlink_xc = &_m0_be_btree_backlink._type

Definition at line 14 of file btree_xc.c.

◆ m0_be_btree_type_data

const struct m0_xcode_enum_val m0_be_btree_type_data[]
Initial value:
= {
{ .xev_idx = 0, .xev_name = "M0_BBT_INVALID", .xev_val = 1 },
{ .xev_idx = 1, .xev_name = "M0_BBT_BALLOC_GROUP_EXTENTS", .xev_val = 2 },
{ .xev_idx = 2, .xev_name = "M0_BBT_BALLOC_GROUP_DESC", .xev_val = 3 },
{ .xev_idx = 3, .xev_name = "M0_BBT_EMAP_EM_MAPPING", .xev_val = 4 },
{ .xev_idx = 4, .xev_name = "M0_BBT_CAS_CTG", .xev_val = 5 },
{ .xev_idx = 5, .xev_name = "M0_BBT_COB_NAMESPACE", .xev_val = 6 },
{ .xev_idx = 6, .xev_name = "M0_BBT_COB_OBJECT_INDEX", .xev_val = 7 },
{ .xev_idx = 7, .xev_name = "M0_BBT_COB_FILEATTR_BASIC", .xev_val = 8 },
{ .xev_idx = 8, .xev_name = "M0_BBT_COB_FILEATTR_EA", .xev_val = 9 },
{ .xev_idx = 9, .xev_name = "M0_BBT_COB_FILEATTR_OMG", .xev_val = 10 },
{ .xev_idx = 10, .xev_name = "M0_BBT_COB_BYTECOUNT", .xev_val = 11 },
{ .xev_idx = 11, .xev_name = "M0_BBT_CONFDB", .xev_val = 12 },
{ .xev_idx = 12, .xev_name = "M0_BBT_UT_KV_OPS", .xev_val = 13 },
{ .xev_idx = 13, .xev_name = "M0_BBT_NR", .xev_val = 14 },
{ .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_be_btree_type'." }
}

Definition at line 115 of file btree_xc.c.

◆ m0_be_btree_xc

struct m0_xcode_type * m0_be_btree_xc = &_m0_be_btree._type

Definition at line 11 of file btree_xc.c.

◆ m0_xc_m0_be_btree_type_enum

struct m0_xcode_enum m0_xc_m0_be_btree_type_enum
Initial value:
= {
.xe_name = "m0_be_btree_type",
.xe_nr = 14,
.xe_maxlen = 27
}
const struct m0_xcode_enum_val m0_be_btree_type_data[]
Definition: btree_xc.c:115

Definition at line 133 of file btree_xc.c.