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

Go to the source code of this file.

Data Structures

struct  _m0_addb2_frame_header_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_addb2_frame_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_addb2_frame_header)==104U)
 
 M0_BASSERT (sizeof((struct m0_addb2_frame_header *) 0) ->he_header==16U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_header)==0U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_seqno)==16U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_offset)==24U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_prev_offset)==32U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_trace_nr)==40U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_size)==44U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_time)==48U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_stob_size)==56U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_magix)==64U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_fid)==72U)
 
 M0_BASSERT (offsetof(struct m0_addb2_frame_header, he_footer)==88U)
 
M0_INTERNAL void m0_xc_m0_addb2_frame_header_struct_init (void)
 
M0_INTERNAL void m0_xc_addb2_storage_init (void)
 
M0_INTERNAL void m0_xc_addb2_storage_fini (void)
 

Variables

struct m0_xcode_typem0_addb2_frame_header_xc = &_m0_addb2_frame_header._type
 
static struct _m0_addb2_frame_header_s _m0_addb2_frame_header
 

Function Documentation

◆ M0_BASSERT() [1/14]

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

◆ M0_BASSERT() [2/14]

M0_BASSERT ( sizeof(struct m0_addb2_frame_header = =104U)

◆ M0_BASSERT() [3/14]

M0_BASSERT ( sizeof((struct m0_addb2_frame_header *) 0) ->  he_header = =16U)

◆ M0_BASSERT() [4/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_header)  = =0U)

◆ M0_BASSERT() [5/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_seqno)  = =16U)

◆ M0_BASSERT() [6/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_offset)  = =24U)

◆ M0_BASSERT() [7/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_prev_offset)  = =32U)

◆ M0_BASSERT() [8/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_trace_nr)  = =40U)

◆ M0_BASSERT() [9/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_size)  = =44U)

◆ M0_BASSERT() [10/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_time)  = =48U)

◆ M0_BASSERT() [11/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_stob_size)  = =56U)

◆ M0_BASSERT() [12/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_magix)  = =64U)

◆ M0_BASSERT() [13/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_fid)  = =72U)

◆ M0_BASSERT() [14/14]

M0_BASSERT ( offsetof(struct m0_addb2_frame_header, he_footer)  = =88U)

◆ m0_xc_addb2_storage_fini()

M0_INTERNAL void m0_xc_addb2_storage_fini ( void  )

Definition at line 232 of file storage_xc.c.

◆ m0_xc_addb2_storage_init()

M0_INTERNAL void m0_xc_addb2_storage_init ( void  )

Definition at line 227 of file storage_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_addb2_frame_header_struct_init()

M0_INTERNAL void m0_xc_m0_addb2_frame_header_struct_init ( void  )

Definition at line 57 of file storage_xc.c.

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

Variable Documentation

◆ _m0_addb2_frame_header

struct _m0_addb2_frame_header_s _m0_addb2_frame_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_addb2_frame_header",
.xct_sizeof = sizeof (struct m0_addb2_frame_header),
.xct_nr = 11,
.xct_flags = 0,
}
}

◆ m0_addb2_frame_header_xc

struct m0_xcode_type * m0_addb2_frame_header_xc = &_m0_addb2_frame_header._type

Definition at line 10 of file storage_xc.c.