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

Go to the source code of this file.

Data Structures

struct  ctx
 

Enumerations

enum  { HI_MAX = 32, OP_MAX = 32, UP_MAX = 1024 }
 

Functions

static void ready (struct m0_dtm_op *op)
 
static void miser (struct m0_dtm_op *op)
 
static void late (struct m0_dtm_op *op)
 
static void h_release (struct m0_dtm_hi *hi)
 
static void nu (void)
 
static void hi (void)
 
static void op (void)
 
static void ctx_init (void)
 
static void ctx_fini (void)
 
static void ctx_add (int hi, int op, enum m0_dtm_up_rule rule, m0_dtm_ver_t ver, m0_dtm_ver_t orig_ver)
 
M0_INTERNAL void up_print (const struct m0_dtm_up *up)
 
M0_INTERNAL void op_print (const struct m0_dtm_op *op)
 
M0_INTERNAL void hi_print (const struct m0_dtm_hi *hi)
 
static void __attribute__ ((unused))
 
static void ctx_check (void)
 
static void fail (struct m0_dtm_op *op)
 
static void ctx_op_add (int i)
 
static void ctx_state (int i, enum m0_dtm_state state)
 
static void up_init (void)
 
static void op_add (void)
 
static void op_gap (void)
 
static void set_flag (struct m0_dtm_op *op)
 
static void op_late (void)
 
static void op_miser (void)
 
static void op_miser_delayed (void)
 
static void op_done (void)
 

Variables

static struct ctx cc
 
static void(* c_ready )(struct m0_dtm_op *op)
 
static void(* c_miser )(struct m0_dtm_op *op)
 
static void(* c_late )(struct m0_dtm_op *op)
 
static const struct m0_dtm_op_ops op_ops
 
static const struct m0_dtm_hi_ops hi_ops
 
static bool flag
 
struct m0_ut_suite dtm_nucleus_ut