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

Go to the source code of this file.

Data Structures

struct  _m0_fol_rec_header_s
 
struct  _m0_fol_frag_header_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_fol_rec_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fol_frag_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_fol_rec_header)==48U)
 
 M0_BASSERT (sizeof((struct m0_fol_rec_header *) 0) ->rh_frags_nr==4U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_frags_nr)==0U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_data_len)==4U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_self)==8U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_lsn)==24U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_lsn_discarded)==32U)
 
 M0_BASSERT (offsetof(struct m0_fol_rec_header, rh_magic)==40U)
 
 M0_BASSERT (sizeof(struct m0_fol_frag_header)==16U)
 
 M0_BASSERT (sizeof((struct m0_fol_frag_header *) 0) ->rph_index==4U)
 
 M0_BASSERT (offsetof(struct m0_fol_frag_header, rph_index)==0U)
 
 M0_BASSERT (offsetof(struct m0_fol_frag_header, rph_magic)==8U)
 
M0_INTERNAL void m0_xc_m0_fol_rec_header_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fol_frag_header_struct_init (void)
 
M0_INTERNAL void m0_xc_fol_fol_init (void)
 
M0_INTERNAL void m0_xc_fol_fol_fini (void)
 

Variables

struct m0_xcode_typem0_fol_rec_header_xc = &_m0_fol_rec_header._type
 
struct m0_xcode_typem0_fol_frag_header_xc = &_m0_fol_frag_header._type
 
static struct _m0_fol_rec_header_s _m0_fol_rec_header
 
static struct _m0_fol_frag_header_s _m0_fol_frag_header
 

Function Documentation

◆ M0_BASSERT() [1/14]

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

◆ M0_BASSERT() [2/14]

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

◆ M0_BASSERT() [3/14]

M0_BASSERT ( sizeof(struct m0_fol_rec_header = =48U)

◆ M0_BASSERT() [4/14]

M0_BASSERT ( sizeof((struct m0_fol_rec_header *) 0) ->  rh_frags_nr = =4U)

◆ M0_BASSERT() [5/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_frags_nr)  = =0U)

◆ M0_BASSERT() [6/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_data_len)  = =4U)

◆ M0_BASSERT() [7/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_self)  = =8U)

◆ M0_BASSERT() [8/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_lsn)  = =24U)

◆ M0_BASSERT() [9/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_lsn_discarded)  = =32U)

◆ M0_BASSERT() [10/14]

M0_BASSERT ( offsetof(struct m0_fol_rec_header, rh_magic)  = =40U)

◆ M0_BASSERT() [11/14]

M0_BASSERT ( sizeof(struct m0_fol_frag_header = =16U)

◆ M0_BASSERT() [12/14]

M0_BASSERT ( sizeof((struct m0_fol_frag_header *) 0) ->  rph_index = =4U)

◆ M0_BASSERT() [13/14]

M0_BASSERT ( offsetof(struct m0_fol_frag_header, rph_index)  = =0U)

◆ M0_BASSERT() [14/14]

M0_BASSERT ( offsetof(struct m0_fol_frag_header, rph_magic)  = =8U)

◆ m0_xc_fol_fol_fini()

M0_INTERNAL void m0_xc_fol_fol_fini ( void  )

Definition at line 208 of file fol_xc.c.

◆ m0_xc_fol_fol_init()

M0_INTERNAL void m0_xc_fol_fol_init ( void  )

Definition at line 202 of file fol_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_fol_frag_header_struct_init()

M0_INTERNAL void m0_xc_m0_fol_frag_header_struct_init ( void  )

Definition at line 167 of file fol_xc.c.

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

◆ m0_xc_m0_fol_rec_header_struct_init()

M0_INTERNAL void m0_xc_m0_fol_rec_header_struct_init ( void  )

Definition at line 72 of file fol_xc.c.

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

Variable Documentation

◆ _m0_fol_frag_header

struct _m0_fol_frag_header_s _m0_fol_frag_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fol_frag_header",
.xct_sizeof = sizeof (struct m0_fol_frag_header),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _m0_fol_rec_header

struct _m0_fol_rec_header_s _m0_fol_rec_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fol_rec_header",
.xct_sizeof = sizeof (struct m0_fol_rec_header),
.xct_nr = 6,
.xct_flags = 0,
}
}

◆ m0_fol_frag_header_xc

struct m0_xcode_type * m0_fol_frag_header_xc = &_m0_fol_frag_header._type

Definition at line 11 of file fol_xc.c.

◆ m0_fol_rec_header_xc

struct m0_xcode_type * m0_fol_rec_header_xc = &_m0_fol_rec_header._type

Definition at line 10 of file fol_xc.c.