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

Go to the source code of this file.

Data Structures

struct  _m0_be_bnode_s
 
struct  _be_btree_key_val_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_be_bnode_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _be_btree_key_val_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_be_bnode)==6232U)
 
 M0_BASSERT (sizeof((struct m0_be_bnode *) 0) ->bt_header==16U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_backlink)==16U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_next)==64U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_num_active_key)==72U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_level)==76U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_isleaf)==80U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_pad)==81U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_kv_arr)==88U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_child_arr)==4168U)
 
 M0_BASSERT (offsetof(struct m0_be_bnode, bt_footer)==6216U)
 
 M0_BASSERT (sizeof(struct be_btree_key_val)==16U)
 
 M0_BASSERT (sizeof((struct be_btree_key_val *) 0) ->btree_key==8U)
 
 M0_BASSERT (offsetof(struct be_btree_key_val, btree_key)==0U)
 
 M0_BASSERT (offsetof(struct be_btree_key_val, btree_val)==8U)
 
M0_INTERNAL void m0_xc_m0_be_bnode_struct_init (void)
 
M0_INTERNAL void m0_xc_be_btree_key_val_struct_init (void)
 
M0_INTERNAL void m0_xc_be_btree_internal_init (void)
 
M0_INTERNAL void m0_xc_be_btree_internal_fini (void)
 

Variables

struct m0_xcode_typem0_be_bnode_xc = &_m0_be_bnode._type
 
struct m0_xcode_typebe_btree_key_val_xc = &_be_btree_key_val._type
 
static struct _m0_be_bnode_s _m0_be_bnode
 
static struct _be_btree_key_val_s _be_btree_key_val
 

Function Documentation

◆ M0_BASSERT() [1/18]

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

◆ M0_BASSERT() [2/18]

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

◆ M0_BASSERT() [3/18]

M0_BASSERT ( sizeof(struct m0_be_bnode = =6232U)

◆ M0_BASSERT() [4/18]

M0_BASSERT ( sizeof((struct m0_be_bnode *) 0) ->  bt_header = =16U)

◆ M0_BASSERT() [5/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_header = =0U)

◆ M0_BASSERT() [6/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_backlink = =16U)

◆ M0_BASSERT() [7/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_next = =64U)

◆ M0_BASSERT() [8/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_num_active_key = =72U)

◆ M0_BASSERT() [9/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_level = =76U)

◆ M0_BASSERT() [10/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_isleaf = =80U)

◆ M0_BASSERT() [11/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_pad = =81U)

◆ M0_BASSERT() [12/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_kv_arr = =88U)

◆ M0_BASSERT() [13/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_child_arr = =4168U)

◆ M0_BASSERT() [14/18]

M0_BASSERT ( offsetof(struct m0_be_bnode, bt_footer = =6216U)

◆ M0_BASSERT() [15/18]

M0_BASSERT ( sizeof(struct be_btree_key_val = =16U)

◆ M0_BASSERT() [16/18]

M0_BASSERT ( sizeof((struct be_btree_key_val *) 0) ->  btree_key = =8U)

◆ M0_BASSERT() [17/18]

M0_BASSERT ( offsetof(struct be_btree_key_val, btree_key = =0U)

◆ M0_BASSERT() [18/18]

M0_BASSERT ( offsetof(struct be_btree_key_val, btree_val = =8U)

◆ m0_xc_be_btree_internal_fini()

M0_INTERNAL void m0_xc_be_btree_internal_fini ( void  )

Definition at line 330 of file btree_internal_xc.c.

◆ m0_xc_be_btree_internal_init()

M0_INTERNAL void m0_xc_be_btree_internal_init ( void  )

Definition at line 320 of file btree_internal_xc.c.

Here is the call graph for this function:

◆ m0_xc_be_btree_key_val_struct_init()

M0_INTERNAL void m0_xc_be_btree_key_val_struct_init ( void  )

Definition at line 284 of file btree_internal_xc.c.

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

◆ m0_xc_m0_be_bnode_struct_init()

M0_INTERNAL void m0_xc_m0_be_bnode_struct_init ( void  )

Definition at line 117 of file btree_internal_xc.c.

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

Variable Documentation

◆ _be_btree_key_val

struct _be_btree_key_val_s _be_btree_key_val
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "be_btree_key_val",
.xct_sizeof = sizeof (struct be_btree_key_val),
.xct_nr = 2,
}
}

◆ _m0_be_bnode

struct _m0_be_bnode_s _m0_be_bnode
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_be_bnode",
.xct_sizeof = sizeof (struct m0_be_bnode),
.xct_nr = 10,
}
}

◆ be_btree_key_val_xc

struct m0_xcode_type * be_btree_key_val_xc = &_be_btree_key_val._type

Definition at line 14 of file btree_internal_xc.c.

◆ m0_be_bnode_xc

struct m0_xcode_type * m0_be_bnode_xc = &_m0_be_bnode._type

Definition at line 11 of file btree_internal_xc.c.