Motr  M0
dtm_internal.h File Reference
#include "lib/tlist.h"
#include "dtm/nucleus.h"
Include dependency graph for dtm_internal.h:

Go to the source code of this file.

Macros

#define __MOTR_DTM_DTM_INTERNAL_H__
 
#define up_for(o, up)
 
#define up_endfor
 
#define hi_for(h, up)
 
#define hi_endfor
 
#define oper_for(o, update)
 
#define oper_endfor
 
#define history_for(h, update)
 
#define history_endfor
 
#define UPDATE_UP(update)
 
#define UP_HISTORY(up)   hi_history((up)->up_hi)
 
#define UPDATE_HISTORY(update)   UP_HISTORY(&(update)->upd_up)
 
#define UPDATE_REM(update)   (UPDATE_HISTORY(update)->h_rem)
 
#define HISTORY_DTM(history)   (nu_dtm((history)->h_hi.hi_nu))
 

Functions

 M0_TL_DESCR_DECLARE (hi, M0_EXTERN)
 
 M0_TL_DECLARE (hi, M0_EXTERN, struct m0_dtm_up)
 
 M0_TL_DESCR_DECLARE (op, M0_EXTERN)
 
 M0_TL_DECLARE (op, M0_EXTERN, struct m0_dtm_up)
 
 M0_TL_DESCR_DECLARE (history, M0_EXTERN)
 
 M0_TL_DECLARE (history, M0_EXTERN, struct m0_dtm_update)
 
 M0_TL_DESCR_DECLARE (oper, M0_EXTERN)
 
 M0_TL_DECLARE (oper, M0_EXTERN, struct m0_dtm_update)
 
 M0_TL_DESCR_DECLARE (cat, M0_EXTERN)
 
 M0_TL_DECLARE (cat, M0_EXTERN, struct m0_dtm_history)
 
 M0_TL_DESCR_DECLARE (exc, M0_EXTERN)
 
 M0_TL_DECLARE (exc, M0_EXTERN, struct m0_dtm_history)
 
M0_INTERNAL struct m0_dtmnu_dtm (struct m0_dtm_nu *nu)
 
M0_INTERNAL struct m0_dtm_historyhi_history (struct m0_dtm_hi *hi)
 
M0_INTERNAL struct m0_dtm_updateup_update (struct m0_dtm_up *up)
 
M0_INTERNAL m0_dtm_ver_t up_ver (const struct m0_dtm_up *up)
 
M0_INTERNAL bool op_state (const struct m0_dtm_op *op, enum m0_dtm_state state)
 
M0_INTERNAL void advance_try (const struct m0_dtm_op *op)
 
M0_INTERNAL void up_prepared (struct m0_dtm_up *up)
 
M0_INTERNAL void history_close (struct m0_dtm_history *history)
 
M0_INTERNAL void nu_lock (struct m0_dtm_nu *nu)
 
M0_INTERNAL void nu_unlock (struct m0_dtm_nu *nu)
 
M0_INTERNAL void dtm_lock (struct m0_dtm *dtm)
 
M0_INTERNAL void dtm_unlock (struct m0_dtm *dtm)
 
M0_INTERNAL void oper_lock (const struct m0_dtm_oper *oper)
 
M0_INTERNAL void oper_unlock (const struct m0_dtm_oper *oper)
 
M0_INTERNAL void history_lock (const struct m0_dtm_history *history)
 
M0_INTERNAL void history_unlock (const struct m0_dtm_history *history)
 
M0_INTERNAL void update_reint (struct m0_dtm_update *update)
 
M0_INTERNAL struct m0_dtm_uphi_latest (struct m0_dtm_hi *hi)
 
M0_INTERNAL struct m0_dtm_uphi_earliest (struct m0_dtm_hi *hi)
 
M0_INTERNAL struct m0_dtm_uphi_find (struct m0_dtm_hi *hi, m0_dtm_ver_t ver)
 
M0_INTERNAL struct m0_dtm_uphistory_latest (struct m0_dtm_history *history)
 
M0_INTERNAL struct m0_dtm_uphistory_earliest (struct m0_dtm_history *history)
 
M0_INTERNAL m0_dtm_ver_t update_ver (const struct m0_dtm_update *update)
 
M0_INTERNAL bool up_is_earlier (struct m0_dtm_up *up0, struct m0_dtm_up *up1)
 
M0_INTERNAL bool update_is_earlier (struct m0_dtm_update *update0, struct m0_dtm_update *update1)
 
M0_INTERNAL int m0_dtm_remote_global_init (void)
 
M0_INTERNAL void m0_dtm_remote_global_fini (void)
 
M0_INTERNAL void oper_print (const struct m0_dtm_oper *oper)
 
M0_INTERNAL void update_print (const struct m0_dtm_update *update)
 
M0_INTERNAL void history_print (const struct m0_dtm_history *history)
 
M0_INTERNAL void history_print_header (const struct m0_dtm_history *history, char *buf)
 
M0_INTERNAL void update_print_internal (const struct m0_dtm_update *update, bool history)
 
M0_INTERNAL bool oper_update_unique (const struct m0_dtm_oper *oper, const struct m0_dtm_update *update)
 

Macro Definition Documentation

◆ __MOTR_DTM_DTM_INTERNAL_H__

#define __MOTR_DTM_DTM_INTERNAL_H__

Definition at line 27 of file dtm_internal.h.