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

Go to the source code of this file.

Data Structures

struct  _m0_format_header_s
 
struct  _m0_format_footer_s
 
struct  _m0_be_mutex_s
 
struct  _m0_be_rwlock_s
 
struct  _m0_be_clink_s
 
struct  _m0_be_chan_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_format_header_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_format_footer_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_mutex_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_rwlock_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_clink_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_be_chan_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_format_header)==16U)
 
 M0_BASSERT (sizeof((struct m0_format_header *) 0) ->hd_magic==8U)
 
 M0_BASSERT (offsetof(struct m0_format_header, hd_magic)==0U)
 
 M0_BASSERT (offsetof(struct m0_format_header, hd_bits)==8U)
 
 M0_BASSERT (sizeof(struct m0_format_footer)==16U)
 
 M0_BASSERT (sizeof((struct m0_format_footer *) 0) ->ft_magic==8U)
 
 M0_BASSERT (offsetof(struct m0_format_footer, ft_magic)==0U)
 
 M0_BASSERT (offsetof(struct m0_format_footer, ft_checksum)==8U)
 
 M0_BASSERT (sizeof(struct m0_be_mutex)==168U)
 
M0_INTERNAL void m0_xc_m0_format_header_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_format_footer_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_mutex_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_rwlock_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_clink_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_be_chan_struct_init (void)
 
M0_INTERNAL void m0_xc_format_format_init (void)
 
M0_INTERNAL void m0_xc_format_format_fini (void)
 

Variables

struct m0_xcode_typem0_format_header_xc = &_m0_format_header._type
 
struct m0_xcode_typem0_format_footer_xc = &_m0_format_footer._type
 
struct m0_xcode_typem0_be_mutex_xc = &_m0_be_mutex._type
 
struct m0_xcode_typem0_be_rwlock_xc = &_m0_be_rwlock._type
 
struct m0_xcode_typem0_be_clink_xc = &_m0_be_clink._type
 
struct m0_xcode_typem0_be_chan_xc = &_m0_be_chan._type
 
static struct _m0_format_header_s _m0_format_header
 
static struct _m0_format_footer_s _m0_format_footer
 
static struct _m0_be_mutex_s _m0_be_mutex
 
static struct _m0_be_rwlock_s _m0_be_rwlock
 
static struct _m0_be_clink_s _m0_be_clink
 
static struct _m0_be_chan_s _m0_be_chan
 
const struct m0_xcode_enum_val m0_format_type_data []
 
struct m0_xcode_enum m0_xc_m0_format_type_enum
 

Function Documentation

◆ M0_BASSERT() [1/15]

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

◆ M0_BASSERT() [2/15]

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

◆ M0_BASSERT() [3/15]

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

◆ M0_BASSERT() [4/15]

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

◆ M0_BASSERT() [5/15]

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

◆ M0_BASSERT() [6/15]

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

◆ M0_BASSERT() [7/15]

M0_BASSERT ( sizeof(struct m0_format_header = =16U)

◆ M0_BASSERT() [8/15]

M0_BASSERT ( sizeof((struct m0_format_header *) 0) ->  hd_magic = =8U)

◆ M0_BASSERT() [9/15]

M0_BASSERT ( offsetof(struct m0_format_header, hd_magic = =0U)

◆ M0_BASSERT() [10/15]

M0_BASSERT ( offsetof(struct m0_format_header, hd_bits = =8U)

◆ M0_BASSERT() [11/15]

M0_BASSERT ( sizeof(struct m0_format_footer = =16U)

◆ M0_BASSERT() [12/15]

M0_BASSERT ( sizeof((struct m0_format_footer *) 0) ->  ft_magic = =8U)

◆ M0_BASSERT() [13/15]

M0_BASSERT ( offsetof(struct m0_format_footer, ft_magic = =0U)

◆ M0_BASSERT() [14/15]

M0_BASSERT ( offsetof(struct m0_format_footer, ft_checksum = =8U)

◆ M0_BASSERT() [15/15]

M0_BASSERT ( sizeof(struct m0_be_mutex = =168U)

◆ m0_xc_format_format_fini()

M0_INTERNAL void m0_xc_format_format_fini ( void  )

Definition at line 367 of file format_xc.c.

◆ m0_xc_format_format_init()

M0_INTERNAL void m0_xc_format_format_init ( void  )

Definition at line 349 of file format_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_be_chan_struct_init()

M0_INTERNAL void m0_xc_m0_be_chan_struct_init ( void  )

Definition at line 328 of file format_xc.c.

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

◆ m0_xc_m0_be_clink_struct_init()

M0_INTERNAL void m0_xc_m0_be_clink_struct_init ( void  )

Definition at line 306 of file format_xc.c.

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

◆ m0_xc_m0_be_mutex_struct_init()

M0_INTERNAL void m0_xc_m0_be_mutex_struct_init ( void  )

Definition at line 262 of file format_xc.c.

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

◆ m0_xc_m0_be_rwlock_struct_init()

M0_INTERNAL void m0_xc_m0_be_rwlock_struct_init ( void  )

Definition at line 284 of file format_xc.c.

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

◆ m0_xc_m0_format_footer_struct_init()

M0_INTERNAL void m0_xc_m0_format_footer_struct_init ( void  )

Definition at line 226 of file format_xc.c.

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

◆ m0_xc_m0_format_header_struct_init()

M0_INTERNAL void m0_xc_m0_format_header_struct_init ( void  )

Definition at line 191 of file format_xc.c.

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

Variable Documentation

◆ _m0_be_chan

struct _m0_be_chan_s _m0_be_chan
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_ARRAY,
.xct_name = "m0_be_chan",
.xct_sizeof = sizeof (struct m0_be_chan),
.xct_nr = 1,
}
}

◆ _m0_be_clink

struct _m0_be_clink_s _m0_be_clink
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_ARRAY,
.xct_name = "m0_be_clink",
.xct_sizeof = sizeof (struct m0_be_clink),
.xct_nr = 1,
}
}

◆ _m0_be_mutex

struct _m0_be_mutex_s _m0_be_mutex
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_ARRAY,
.xct_name = "m0_be_mutex",
.xct_sizeof = sizeof (struct m0_be_mutex),
.xct_nr = 1,
}
}

◆ _m0_be_rwlock

struct _m0_be_rwlock_s _m0_be_rwlock
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_ARRAY,
.xct_name = "m0_be_rwlock",
.xct_sizeof = sizeof (struct m0_be_rwlock),
.xct_nr = 1,
}
}

◆ _m0_format_footer

struct _m0_format_footer_s _m0_format_footer
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_format_footer",
.xct_sizeof = sizeof (struct m0_format_footer),
.xct_nr = 2,
}
}

◆ _m0_format_header

struct _m0_format_header_s _m0_format_header
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_format_header",
.xct_sizeof = sizeof (struct m0_format_header),
.xct_nr = 2,
}
}

◆ m0_be_chan_xc

struct m0_xcode_type * m0_be_chan_xc = &_m0_be_chan._type

Definition at line 22 of file format_xc.c.

◆ m0_be_clink_xc

struct m0_xcode_type * m0_be_clink_xc = &_m0_be_clink._type

Definition at line 19 of file format_xc.c.

◆ m0_be_mutex_xc

struct m0_xcode_type * m0_be_mutex_xc = &_m0_be_mutex._type

Definition at line 13 of file format_xc.c.

◆ m0_be_rwlock_xc

struct m0_xcode_type * m0_be_rwlock_xc = &_m0_be_rwlock._type

Definition at line 16 of file format_xc.c.

◆ m0_format_footer_xc

struct m0_xcode_type * m0_format_footer_xc = &_m0_format_footer._type

Definition at line 11 of file format_xc.c.

◆ m0_format_header_xc

struct m0_xcode_type * m0_format_header_xc = &_m0_format_header._type

Definition at line 10 of file format_xc.c.

◆ m0_format_type_data

const struct m0_xcode_enum_val m0_format_type_data[]
Initial value:
= {
{ .xev_idx = 0, .xev_name = "M0_FORMAT_TYPE_BEGIN", .xev_val = 1 },
{ .xev_idx = 1, .xev_name = "M0_FORMAT_TYPE_RPC_PACKET", .xev_val = 1 },
{ .xev_idx = 2, .xev_name = "M0_FORMAT_TYPE_RPC_ITEM", .xev_val = 2 },
{ .xev_idx = 3, .xev_name = "M0_FORMAT_TYPE_BE_BTREE", .xev_val = 3 },
{ .xev_idx = 4, .xev_name = "M0_FORMAT_TYPE_BE_BNODE", .xev_val = 4 },
{ .xev_idx = 5, .xev_name = "M0_FORMAT_TYPE_BE_EMAP_KEY", .xev_val = 5 },
{ .xev_idx = 6, .xev_name = "M0_FORMAT_TYPE_BE_EMAP_REC", .xev_val = 6 },
{ .xev_idx = 7, .xev_name = "M0_FORMAT_TYPE_BE_EMAP", .xev_val = 7 },
{ .xev_idx = 8, .xev_name = "M0_FORMAT_TYPE_BE_LIST", .xev_val = 8 },
{ .xev_idx = 9, .xev_name = "M0_FORMAT_TYPE_BE_SEG_HDR", .xev_val = 9 },
{ .xev_idx = 10, .xev_name = "M0_FORMAT_TYPE_BALLOC", .xev_val = 10 },
{ .xev_idx = 11, .xev_name = "M0_FORMAT_TYPE_ADDB2_FRAME_HEADER", .xev_val = 11 },
{ .xev_idx = 12, .xev_name = "M0_FORMAT_TYPE_STOB_AD_0TYPE_REC", .xev_val = 12 },
{ .xev_idx = 13, .xev_name = "M0_FORMAT_TYPE_STOB_AD_DOMAIN", .xev_val = 13 },
{ .xev_idx = 14, .xev_name = "M0_FORMAT_TYPE_COB_DOMAIN", .xev_val = 14 },
{ .xev_idx = 15, .xev_name = "M0_FORMAT_TYPE_COB_NSREC", .xev_val = 15 },
{ .xev_idx = 16, .xev_name = "M0_FORMAT_TYPE_BALLOC_GROUP_DESC", .xev_val = 16 },
{ .xev_idx = 17, .xev_name = "M0_FORMAT_TYPE_EXT", .xev_val = 17 },
{ .xev_idx = 18, .xev_name = "M0_FORMAT_TYPE_CAS_INDEX", .xev_val = 18 },
{ .xev_idx = 19, .xev_name = "M0_FORMAT_TYPE_POOLNODE", .xev_val = 19 },
{ .xev_idx = 20, .xev_name = "M0_FORMAT_TYPE_POOLDEV", .xev_val = 20 },
{ .xev_idx = 21, .xev_name = "M0_FORMAT_TYPE_POOL_SPARE_USAGE", .xev_val = 21 },
{ .xev_idx = 22, .xev_name = "M0_FORMAT_TYPE_CAS_STATE", .xev_val = 22 },
{ .xev_idx = 23, .xev_name = "M0_FORMAT_TYPE_CAS_CTG", .xev_val = 23 },
{ .xev_idx = 24, .xev_name = "M0_FORMAT_TYPE_NR", .xev_val = 24 },
{ .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_format_type'." }
}

Definition at line 155 of file format_xc.c.

◆ m0_xc_m0_format_type_enum

struct m0_xcode_enum m0_xc_m0_format_type_enum
Initial value:
= {
.xe_name = "m0_format_type",
.xe_nr = 25,
.xe_maxlen = 33
}
const struct m0_xcode_enum_val m0_format_type_data[]
Definition: format_xc.c:155

Definition at line 184 of file format_xc.c.