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

Go to the source code of this file.

Data Structures

struct  _m0_vec_s
 
struct  _m0_ioseg_s
 
struct  _m0_io_indexvec_s
 
struct  _m0_io_indexvec_seq_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_vec_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_ioseg_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_io_indexvec_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_io_indexvec_seq_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_vec)==16U)
 
 M0_BASSERT (sizeof((struct m0_vec *) 0) ->v_nr==4U)
 
 M0_BASSERT (offsetof(struct m0_vec, v_nr)==0U)
 
 M0_BASSERT (offsetof(struct m0_vec, v_count)==8U)
 
 M0_BASSERT (sizeof(struct m0_ioseg)==16U)
 
 M0_BASSERT (sizeof((struct m0_ioseg *) 0) ->ci_index==8U)
 
 M0_BASSERT (offsetof(struct m0_ioseg, ci_index)==0U)
 
 M0_BASSERT (offsetof(struct m0_ioseg, ci_count)==8U)
 
 M0_BASSERT (sizeof(struct m0_io_indexvec)==16U)
 
 M0_BASSERT (sizeof((struct m0_io_indexvec *) 0) ->ci_nr==4U)
 
 M0_BASSERT (offsetof(struct m0_io_indexvec, ci_nr)==0U)
 
 M0_BASSERT (offsetof(struct m0_io_indexvec, ci_iosegs)==8U)
 
 M0_BASSERT (sizeof(struct m0_io_indexvec_seq)==16U)
 
 M0_BASSERT (sizeof((struct m0_io_indexvec_seq *) 0) ->cis_nr==4U)
 
 M0_BASSERT (offsetof(struct m0_io_indexvec_seq, cis_nr)==0U)
 
 M0_BASSERT (offsetof(struct m0_io_indexvec_seq, cis_ivecs)==8U)
 
M0_INTERNAL void m0_xc_m0_vec_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_ioseg_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_io_indexvec_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_io_indexvec_seq_struct_init (void)
 
M0_INTERNAL void m0_xc_lib_vec_init (void)
 
M0_INTERNAL void m0_xc_lib_vec_fini (void)
 

Variables

struct m0_xcode_typem0_vec_xc = &_m0_vec._type
 
struct m0_xcode_typem0_ioseg_xc = &_m0_ioseg._type
 
struct m0_xcode_typem0_io_indexvec_xc = &_m0_io_indexvec._type
 
struct m0_xcode_typem0_io_indexvec_seq_xc = &_m0_io_indexvec_seq._type
 
static struct _m0_vec_s _m0_vec
 
static struct _m0_ioseg_s _m0_ioseg
 
static struct _m0_io_indexvec_s _m0_io_indexvec
 
static struct _m0_io_indexvec_seq_s _m0_io_indexvec_seq
 

Function Documentation

◆ M0_BASSERT() [1/20]

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

◆ M0_BASSERT() [2/20]

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

◆ M0_BASSERT() [3/20]

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

◆ M0_BASSERT() [4/20]

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

◆ M0_BASSERT() [5/20]

M0_BASSERT ( sizeof(struct m0_vec = =16U)

◆ M0_BASSERT() [6/20]

M0_BASSERT ( sizeof((struct m0_vec *) 0) ->  v_nr = =4U)

◆ M0_BASSERT() [7/20]

M0_BASSERT ( offsetof(struct m0_vec, v_nr = =0U)

◆ M0_BASSERT() [8/20]

M0_BASSERT ( offsetof(struct m0_vec, v_count = =8U)

◆ M0_BASSERT() [9/20]

M0_BASSERT ( sizeof(struct m0_ioseg = =16U)

◆ M0_BASSERT() [10/20]

M0_BASSERT ( sizeof((struct m0_ioseg *) 0) ->  ci_index = =8U)

◆ M0_BASSERT() [11/20]

M0_BASSERT ( offsetof(struct m0_ioseg, ci_index = =0U)

◆ M0_BASSERT() [12/20]

M0_BASSERT ( offsetof(struct m0_ioseg, ci_count = =8U)

◆ M0_BASSERT() [13/20]

M0_BASSERT ( sizeof(struct m0_io_indexvec = =16U)

◆ M0_BASSERT() [14/20]

M0_BASSERT ( sizeof((struct m0_io_indexvec *) 0) ->  ci_nr = =4U)

◆ M0_BASSERT() [15/20]

M0_BASSERT ( offsetof(struct m0_io_indexvec, ci_nr = =0U)

◆ M0_BASSERT() [16/20]

M0_BASSERT ( offsetof(struct m0_io_indexvec, ci_iosegs = =8U)

◆ M0_BASSERT() [17/20]

M0_BASSERT ( sizeof(struct m0_io_indexvec_seq = =16U)

◆ M0_BASSERT() [18/20]

M0_BASSERT ( sizeof((struct m0_io_indexvec_seq *) 0) ->  cis_nr = =4U)

◆ M0_BASSERT() [19/20]

M0_BASSERT ( offsetof(struct m0_io_indexvec_seq, cis_nr = =0U)

◆ M0_BASSERT() [20/20]

M0_BASSERT ( offsetof(struct m0_io_indexvec_seq, cis_ivecs = =8U)

◆ m0_xc_lib_vec_fini()

M0_INTERNAL void m0_xc_lib_vec_fini ( void  )

Definition at line 262 of file vec_xc.c.

◆ m0_xc_lib_vec_init()

M0_INTERNAL void m0_xc_lib_vec_init ( void  )

Definition at line 254 of file vec_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_io_indexvec_seq_struct_init()

M0_INTERNAL void m0_xc_m0_io_indexvec_seq_struct_init ( void  )

Definition at line 219 of file vec_xc.c.

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

◆ m0_xc_m0_io_indexvec_struct_init()

M0_INTERNAL void m0_xc_m0_io_indexvec_struct_init ( void  )

Definition at line 184 of file vec_xc.c.

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

◆ m0_xc_m0_ioseg_struct_init()

M0_INTERNAL void m0_xc_m0_ioseg_struct_init ( void  )

Definition at line 149 of file vec_xc.c.

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

◆ m0_xc_m0_vec_struct_init()

M0_INTERNAL void m0_xc_m0_vec_struct_init ( void  )

Definition at line 114 of file vec_xc.c.

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

Variable Documentation

◆ _m0_io_indexvec

struct _m0_io_indexvec_s _m0_io_indexvec
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_io_indexvec",
.xct_sizeof = sizeof (struct m0_io_indexvec),
.xct_nr = 2,
}
}

◆ _m0_io_indexvec_seq

struct _m0_io_indexvec_seq_s _m0_io_indexvec_seq
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_io_indexvec_seq",
.xct_sizeof = sizeof (struct m0_io_indexvec_seq),
.xct_nr = 2,
}
}

◆ _m0_ioseg

struct _m0_ioseg_s _m0_ioseg
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_ioseg",
.xct_sizeof = sizeof (struct m0_ioseg),
.xct_nr = 2,
}
}
Definition: vec.h:625

◆ _m0_vec

struct _m0_vec_s _m0_vec
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_vec",
.xct_sizeof = sizeof (struct m0_vec),
.xct_nr = 2,
}
}
Definition: vec.h:49

◆ m0_io_indexvec_seq_xc

struct m0_xcode_type * m0_io_indexvec_seq_xc = &_m0_io_indexvec_seq._type

Definition at line 13 of file vec_xc.c.

◆ m0_io_indexvec_xc

struct m0_xcode_type * m0_io_indexvec_xc = &_m0_io_indexvec._type

Definition at line 12 of file vec_xc.c.

◆ m0_ioseg_xc

struct m0_xcode_type * m0_ioseg_xc = &_m0_ioseg._type

Definition at line 11 of file vec_xc.c.

◆ m0_vec_xc

struct m0_xcode_type * m0_vec_xc = &_m0_vec._type

Definition at line 10 of file vec_xc.c.