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

Go to the source code of this file.

Data Structures

struct  _m0_dtm0_tid_s
 
struct  _m0_dtm0_tx_pa_s
 
struct  _m0_dtm0_tx_participants_s
 
struct  _m0_dtm0_tx_desc_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_dtm0_tid_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_dtm0_tx_pa_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_dtm0_tx_participants_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_dtm0_tx_desc_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_dtm0_tid)==24U)
 
 M0_BASSERT (sizeof((struct m0_dtm0_tid *) 0) ->dti_ts==8U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tid, dti_ts)==0U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tid, dti_fid)==8U)
 
 M0_BASSERT (sizeof(struct m0_dtm0_tx_pa)==24U)
 
 M0_BASSERT (sizeof((struct m0_dtm0_tx_pa *) 0) ->p_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_pa, p_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_pa, p_state)==16U)
 
 M0_BASSERT (sizeof(struct m0_dtm0_tx_participants)==16U)
 
 M0_BASSERT (sizeof((struct m0_dtm0_tx_participants *) 0) ->dtp_nr==4U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_participants, dtp_nr)==0U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_participants, dtp_pa)==8U)
 
 M0_BASSERT (sizeof(struct m0_dtm0_tx_desc)==40U)
 
 M0_BASSERT (sizeof((struct m0_dtm0_tx_desc *) 0) ->dtd_id==24U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_desc, dtd_id)==0U)
 
 M0_BASSERT (offsetof(struct m0_dtm0_tx_desc, dtd_ps)==24U)
 
M0_INTERNAL void m0_xc_m0_dtm0_tid_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_dtm0_tx_pa_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_dtm0_tx_participants_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_dtm0_tx_desc_struct_init (void)
 
M0_INTERNAL void m0_xc_dtm0_tx_desc_init (void)
 
M0_INTERNAL void m0_xc_dtm0_tx_desc_fini (void)
 

Variables

struct m0_xcode_typem0_dtm0_tid_xc = &_m0_dtm0_tid._type
 
struct m0_xcode_typem0_dtm0_tx_pa_xc = &_m0_dtm0_tx_pa._type
 
struct m0_xcode_typem0_dtm0_tx_participants_xc = &_m0_dtm0_tx_participants._type
 
struct m0_xcode_typem0_dtm0_tx_desc_xc = &_m0_dtm0_tx_desc._type
 
static struct _m0_dtm0_tid_s _m0_dtm0_tid
 
static struct _m0_dtm0_tx_pa_s _m0_dtm0_tx_pa
 
static struct _m0_dtm0_tx_participants_s _m0_dtm0_tx_participants
 
static struct _m0_dtm0_tx_desc_s _m0_dtm0_tx_desc
 
const struct m0_xcode_enum_val m0_dtm0_tx_pa_state_data []
 
struct m0_xcode_enum m0_xc_m0_dtm0_tx_pa_state_enum
 

Function Documentation

◆ M0_BASSERT() [1/20]

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

◆ M0_BASSERT() [2/20]

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

◆ M0_BASSERT() [3/20]

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

◆ M0_BASSERT() [4/20]

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

◆ M0_BASSERT() [5/20]

M0_BASSERT ( sizeof(struct m0_dtm0_tid = =24U)

◆ M0_BASSERT() [6/20]

M0_BASSERT ( sizeof((struct m0_dtm0_tid *) 0) ->  dti_ts = =8U)

◆ M0_BASSERT() [7/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tid, dti_ts = =0U)

◆ M0_BASSERT() [8/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tid, dti_fid = =8U)

◆ M0_BASSERT() [9/20]

M0_BASSERT ( sizeof(struct m0_dtm0_tx_pa = =24U)

◆ M0_BASSERT() [10/20]

M0_BASSERT ( sizeof((struct m0_dtm0_tx_pa *) 0) ->  p_fid = =16U)

◆ M0_BASSERT() [11/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_pa, p_fid = =0U)

◆ M0_BASSERT() [12/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_pa, p_state)  = =16U)

◆ M0_BASSERT() [13/20]

M0_BASSERT ( sizeof(struct m0_dtm0_tx_participants = =16U)

◆ M0_BASSERT() [14/20]

M0_BASSERT ( sizeof((struct m0_dtm0_tx_participants *) 0) ->  dtp_nr = =4U)

◆ M0_BASSERT() [15/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_participants, dtp_nr = =0U)

◆ M0_BASSERT() [16/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_participants, dtp_pa = =8U)

◆ M0_BASSERT() [17/20]

M0_BASSERT ( sizeof(struct m0_dtm0_tx_desc = =40U)

◆ M0_BASSERT() [18/20]

M0_BASSERT ( sizeof((struct m0_dtm0_tx_desc *) 0) ->  dtd_id = =24U)

◆ M0_BASSERT() [19/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_desc, dtd_id = =0U)

◆ M0_BASSERT() [20/20]

M0_BASSERT ( offsetof(struct m0_dtm0_tx_desc, dtd_ps = =24U)

◆ m0_xc_dtm0_tx_desc_fini()

M0_INTERNAL void m0_xc_dtm0_tx_desc_fini ( void  )

Definition at line 277 of file tx_desc_xc.c.

◆ m0_xc_dtm0_tx_desc_init()

M0_INTERNAL void m0_xc_dtm0_tx_desc_init ( void  )

Definition at line 269 of file tx_desc_xc.c.

Here is the call graph for this function:

◆ m0_xc_m0_dtm0_tid_struct_init()

M0_INTERNAL void m0_xc_m0_dtm0_tid_struct_init ( void  )

Definition at line 129 of file tx_desc_xc.c.

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

◆ m0_xc_m0_dtm0_tx_desc_struct_init()

M0_INTERNAL void m0_xc_m0_dtm0_tx_desc_struct_init ( void  )

Definition at line 234 of file tx_desc_xc.c.

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

◆ m0_xc_m0_dtm0_tx_pa_struct_init()

M0_INTERNAL void m0_xc_m0_dtm0_tx_pa_struct_init ( void  )

Definition at line 164 of file tx_desc_xc.c.

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

◆ m0_xc_m0_dtm0_tx_participants_struct_init()

M0_INTERNAL void m0_xc_m0_dtm0_tx_participants_struct_init ( void  )

Definition at line 199 of file tx_desc_xc.c.

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

Variable Documentation

◆ _m0_dtm0_tid

struct _m0_dtm0_tid_s _m0_dtm0_tid
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_dtm0_tid",
.xct_sizeof = sizeof (struct m0_dtm0_tid),
.xct_nr = 2,
}
}

◆ _m0_dtm0_tx_desc

struct _m0_dtm0_tx_desc_s _m0_dtm0_tx_desc
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_dtm0_tx_desc",
.xct_sizeof = sizeof (struct m0_dtm0_tx_desc),
.xct_nr = 2,
}
}

◆ _m0_dtm0_tx_pa

struct _m0_dtm0_tx_pa_s _m0_dtm0_tx_pa
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_dtm0_tx_pa",
.xct_sizeof = sizeof (struct m0_dtm0_tx_pa),
.xct_nr = 2,
}
}

◆ _m0_dtm0_tx_participants

struct _m0_dtm0_tx_participants_s _m0_dtm0_tx_participants
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_dtm0_tx_participants",
.xct_sizeof = sizeof (struct m0_dtm0_tx_participants),
.xct_nr = 2,
}
}

◆ m0_dtm0_tid_xc

struct m0_xcode_type * m0_dtm0_tid_xc = &_m0_dtm0_tid._type

Definition at line 10 of file tx_desc_xc.c.

◆ m0_dtm0_tx_desc_xc

struct m0_xcode_type * m0_dtm0_tx_desc_xc = &_m0_dtm0_tx_desc._type

Definition at line 13 of file tx_desc_xc.c.

◆ m0_dtm0_tx_pa_state_data

const struct m0_xcode_enum_val m0_dtm0_tx_pa_state_data[]
Initial value:
= {
{ .xev_idx = 0, .xev_name = "M0_DTPS_INIT", .xev_val = 0 },
{ .xev_idx = 1, .xev_name = "M0_DTPS_INPROGRESS", .xev_val = 1 },
{ .xev_idx = 2, .xev_name = "M0_DTPS_EXECUTED", .xev_val = 2 },
{ .xev_idx = 3, .xev_name = "M0_DTPS_PERSISTENT", .xev_val = 3 },
{ .xev_idx = 4, .xev_name = "M0_DTPS_NR", .xev_val = 4 },
{ .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_dtm0_tx_pa_state'." }
}

Definition at line 113 of file tx_desc_xc.c.

◆ m0_dtm0_tx_pa_xc

struct m0_xcode_type * m0_dtm0_tx_pa_xc = &_m0_dtm0_tx_pa._type

Definition at line 11 of file tx_desc_xc.c.

◆ m0_dtm0_tx_participants_xc

struct m0_xcode_type * m0_dtm0_tx_participants_xc = &_m0_dtm0_tx_participants._type

Definition at line 12 of file tx_desc_xc.c.

◆ m0_xc_m0_dtm0_tx_pa_state_enum

struct m0_xcode_enum m0_xc_m0_dtm0_tx_pa_state_enum
Initial value:
= {
.xe_name = "m0_dtm0_tx_pa_state",
.xe_nr = 5,
.xe_maxlen = 18
}
const struct m0_xcode_enum_val m0_dtm0_tx_pa_state_data[]
Definition: tx_desc_xc.c:113

Definition at line 122 of file tx_desc_xc.c.