Motr  M0
tx_desc.h File Reference
#include "fid/fid.h"
#include "fid/fid_xc.h"
#include "dtm0/clk_src.h"
#include "dtm0/clk_src_xc.h"
#include "xcode/xcode.h"
Include dependency graph for tx_desc.h:

Go to the source code of this file.

Data Structures

struct  m0_dtm0_tid
 
struct  m0_dtm0_tx_pa
 
struct  m0_dtm0_tx_participants
 
struct  m0_dtm0_tx_desc
 

Macros

#define __MOTR_DTM0_TX_DESC_H__
 
#define DTID0_F   "{" DTS0_F "," FID_F "}"
 
#define DTID0_P(__tid)   DTS0_P(&(__tid)->dti_ts), FID_P(&(__tid)->dti_fid)
 
#define dtds_forall(__txd, __exp)
 
#define dtds_exists(__txd, __exp)   !dtds_forall(__txd, __exp)
 

Enumerations

enum  m0_dtm0_tx_pa_state
 

Functions

struct m0_dtm0_tid M0_XCA_DOMAIN (rpc|be)
 
uint32_t p_state M0_XCA_FENUM (m0_dtm0_tx_pa_state)
 
M0_INTERNAL int m0_dtm0_tx_desc_copy (const struct m0_dtm0_tx_desc *src, struct m0_dtm0_tx_desc *dst)
 
M0_INTERNAL int m0_dtm0_tx_desc_init (struct m0_dtm0_tx_desc *td, uint32_t nr_pa)
 
M0_INTERNAL void m0_dtm0_tx_desc_fini (struct m0_dtm0_tx_desc *td)
 
M0_INTERNAL int m0_dtm0_tid_cmp (struct m0_dtm0_clk_src *cs, const struct m0_dtm0_tid *left, const struct m0_dtm0_tid *right)
 
M0_INTERNAL void m0_dtm0_tx_desc_init_none (struct m0_dtm0_tx_desc *td)
 
M0_INTERNAL bool m0_dtm0_tx_desc_is_none (const struct m0_dtm0_tx_desc *td)
 
M0_INTERNAL bool m0_dtm0_tid__invariant (const struct m0_dtm0_tid *tid)
 
M0_INTERNAL bool m0_dtm0_tx_desc__invariant (const struct m0_dtm0_tx_desc *td)
 
M0_INTERNAL bool m0_dtm0_tx_desc_state_eq (const struct m0_dtm0_tx_desc *txd, enum m0_dtm0_tx_pa_state state)
 
M0_INTERNAL void m0_dtm0_tx_desc_apply (struct m0_dtm0_tx_desc *tgt, const struct m0_dtm0_tx_desc *upd)
 

Variables

struct m0_dtm0_ts dti_ts
 
struct m0_fid dti_fid
 
 M0_DTPS_INIT
 
 M0_DTPS_INPROGRESS
 
 M0_DTPS_EXECUTED
 
 M0_DTPS_PERSISTENT
 
 M0_DTPS_NR
 
struct m0_fid p_fid
 
uint32_t dtp_nr
 
struct m0_dtm0_tx_padtp_pa
 
struct m0_dtm0_tid dtd_id
 
struct m0_dtm0_tx_participants dtd_ps
 

Macro Definition Documentation

◆ __MOTR_DTM0_TX_DESC_H__

#define __MOTR_DTM0_TX_DESC_H__

Definition at line 26 of file tx_desc.h.

◆ dtds_exists

#define dtds_exists (   __txd,
  __exp 
)    !dtds_forall(__txd, __exp)

Definition at line 167 of file tx_desc.h.

◆ dtds_forall

#define dtds_forall (   __txd,
  __exp 
)
Value:
m0_forall(i, (__txd)->dtd_ps.dtp_nr, \
(__txd)->dtd_ps.dtp_pa[i].p_state __exp)
int i
Definition: dir.c:1033
struct m0_dtm0_tx_participants dtd_ps
Definition: tx_desc.h:165
#define m0_forall(var, nr,...)
Definition: misc.h:112

Definition at line 163 of file tx_desc.h.

◆ DTID0_F

#define DTID0_F   "{" DTS0_F "," FID_F "}"

Definition at line 98 of file tx_desc.h.

◆ DTID0_P

#define DTID0_P (   __tid)    DTS0_P(&(__tid)->dti_ts), FID_P(&(__tid)->dti_fid)

Definition at line 99 of file tx_desc.h.

Enumeration Type Documentation

◆ m0_dtm0_tx_pa_state

Definition at line 101 of file tx_desc.h.

Function Documentation

◆ M0_XCA_DOMAIN()

struct m0_dtm0_tid M0_XCA_DOMAIN ( rpc|  be)

◆ M0_XCA_FENUM()

uint32_t p_state M0_XCA_DOMAIN::M0_XCA_FENUM ( m0_dtm0_tx_pa_state  )

Variable Documentation

◆ dtd_id

struct m0_dtm0_tid dtd_id

Definition at line 164 of file tx_desc.h.

◆ dtd_ps

struct m0_dtm0_tx_participants dtd_ps

Definition at line 165 of file tx_desc.h.

◆ dti_fid

struct m0_fid dti_fid

Definition at line 165 of file tx_desc.h.

◆ dti_ts

struct m0_dtm0_ts dti_ts

Definition at line 164 of file tx_desc.h.

◆ dtp_nr

uint32_t dtp_nr

Definition at line 164 of file tx_desc.h.

◆ dtp_pa

struct m0_dtm0_tx_pa* dtp_pa

Definition at line 165 of file tx_desc.h.

◆ M0_DTPS_EXECUTED

M0_DTPS_EXECUTED

Definition at line 164 of file tx_desc.h.

◆ M0_DTPS_INIT

M0_DTPS_INIT

Definition at line 164 of file tx_desc.h.

◆ M0_DTPS_INPROGRESS

M0_DTPS_INPROGRESS

Definition at line 164 of file tx_desc.h.

◆ M0_DTPS_NR

M0_DTPS_NR

Definition at line 164 of file tx_desc.h.

◆ M0_DTPS_PERSISTENT

M0_DTPS_PERSISTENT

Definition at line 164 of file tx_desc.h.

◆ p_fid

struct m0_fid p_fid

Definition at line 164 of file tx_desc.h.