Motr  M0
BE

Data Structures

struct  m0_be_active_record
 
struct  m0_be_active_record_domain_subsystem
 
struct  m0_be_active_record_domain
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 
#define BE_ACTIVE_RECORD_ID   "0000"
 
#define m0_be_active_record_domain_create(dom, tx, seg, ...)
 

Enumerations

enum  m0_be_active_record_type { ART_OPEN, ART_CLOSE, ART_NORM }
 
enum  m0_be_active_record_domain_op { RDO_CREATE, RDO_DESTROY }
 
enum  m0_be_active_record_op { ARO_CREATE, ARO_DESTROY, ARO_DEL, ARO_ADD }
 

Functions

 M0_BE_LIST_DESCR_DEFINE (ard, "list of ar_domain_subsystem in ar_domain", static, struct m0_be_active_record_domain_subsystem, rds_link, rds_magic, M0_BE_ACT_REC_DOM_MAGIC, M0_BE_ACT_REC_DOM_MAGIC)
 
 M0_BE_LIST_DEFINE (ard, static, struct m0_be_active_record_domain_subsystem)
 
 M0_BE_LIST_DESCR_DEFINE (rds, "list of active_record in ar_domain_subsystem", static, struct m0_be_active_record, ar_link, ar_magic, M0_BE_ACT_REC_DOM_SUB_MAGIC, M0_BE_ACT_REC_DOM_SUB_MAGIC)
 
 M0_BE_LIST_DEFINE (rds, static, struct m0_be_active_record)
 
static int active_record0_init (struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
 
static void active_record0_fini (struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
 
M0_INTERNAL void m0_be_active_record_domain_init (struct m0_be_active_record_domain *dom, struct m0_be_seg *seg)
 
M0_INTERNAL void m0_be_active_record_domain_fini (struct m0_be_active_record_domain *dom)
 
M0_INTERNAL bool m0_be_active_record_domain__invariant (struct m0_be_active_record_domain *dom)
 
M0_INTERNAL int m0_be_active_record_domain__create (struct m0_be_active_record_domain **dom, struct m0_be_tx *tx, struct m0_be_seg *seg, const struct m0_buf *path)
 
M0_INTERNAL int m0_be_active_record_domain_destroy (struct m0_be_active_record_domain *dom, struct m0_be_tx *tx)
 
M0_INTERNAL void m0_be_active_record_domain_credit (struct m0_be_active_record_domain *dom, enum m0_be_active_record_domain_op op, uint8_t subsys_nr, struct m0_be_tx_credit *accum)
 
M0_INTERNAL void m0_be_active_record_init (struct m0_be_active_record *rec, struct m0_be_active_record_domain *ar_dom)
 
M0_INTERNAL void m0_be_active_record_fini (struct m0_be_active_record *rec)
 
M0_INTERNAL bool m0_be_active_record__invariant (struct m0_be_active_record *rec)
 
M0_INTERNAL int m0_be_active_record_create (struct m0_be_active_record **rec, struct m0_be_tx *tx, struct m0_be_active_record_domain *ar_dom)
 
M0_INTERNAL int m0_be_active_record_destroy (struct m0_be_active_record *rec, struct m0_be_tx *tx)
 
M0_INTERNAL void m0_be_active_record_credit (struct m0_be_active_record *rec, enum m0_be_active_record_op op, struct m0_be_tx_credit *accum)
 
static struct m0_be_active_record_domain_subsystembe_active_record__subsystem_lookup (struct m0_be_active_record_domain *dom, const char *subsys)
 
M0_INTERNAL int m0_be_active_record_add (const char *subsys, struct m0_be_active_record *rec, struct m0_be_tx *tx)
 
M0_INTERNAL int m0_be_active_record_del (const char *subsys, struct m0_be_active_record *rec, struct m0_be_tx *tx)
 

Variables

struct m0_be_0type m0_be_active_record0
 

Detailed Description

Macro Definition Documentation

◆ BE_ACTIVE_RECORD_ID

#define BE_ACTIVE_RECORD_ID   "0000"

Definition at line 64 of file active_record.c.

◆ m0_be_active_record_domain_create

#define m0_be_active_record_domain_create (   dom,
  tx,
  seg,
  ... 
)
Value:
(const struct m0_buf []){ \
__VA_ARGS__, M0_BUF_INIT0 })
Definition: buf.h:37
static struct m0_stob_domain * dom
Definition: storage.c:38
#define M0_BUF_INIT0
Definition: buf.h:71
M0_INTERNAL int m0_be_active_record_domain__create(struct m0_be_active_record_domain **dom, struct m0_be_tx *tx, struct m0_be_seg *seg, const struct m0_buf *path)
static struct m0_be_seg * seg
Definition: btree.c:40

Definition at line 100 of file active_record.h.

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 29 of file active_record.c.

Enumeration Type Documentation

◆ m0_be_active_record_domain_op

Enumerator
RDO_CREATE 
RDO_DESTROY 

Definition at line 76 of file active_record.h.

◆ m0_be_active_record_op

Enumerator
ARO_CREATE 
ARO_DESTROY 
ARO_DEL 
ARO_ADD 

Definition at line 81 of file active_record.h.

◆ m0_be_active_record_type

Enumerator
ART_OPEN 
ART_CLOSE 
ART_NORM 

Definition at line 39 of file active_record.h.

Function Documentation

◆ active_record0_fini()

static void active_record0_fini ( struct m0_be_domain dom,
const char *  suffix,
const struct m0_buf data 
)
static

Definition at line 90 of file active_record.c.

Here is the call graph for this function:

◆ active_record0_init()

static int active_record0_init ( struct m0_be_domain dom,
const char *  suffix,
const struct m0_buf data 
)
static

Definition at line 71 of file active_record.c.

Here is the call graph for this function:

◆ be_active_record__subsystem_lookup()

static struct m0_be_active_record_domain_subsystem* be_active_record__subsystem_lookup ( struct m0_be_active_record_domain dom,
const char *  subsys 
)
static

Definition at line 332 of file active_record.c.

Here is the caller graph for this function:

◆ m0_be_active_record__invariant()

M0_INTERNAL bool m0_be_active_record__invariant ( struct m0_be_active_record rec)

Definition at line 272 of file active_record.c.

◆ m0_be_active_record_add()

M0_INTERNAL int m0_be_active_record_add ( const char *  subsys,
struct m0_be_active_record rec,
struct m0_be_tx tx 
)

Definition at line 351 of file active_record.c.

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

◆ m0_be_active_record_create()

M0_INTERNAL int m0_be_active_record_create ( struct m0_be_active_record **  rec,
struct m0_be_tx tx,
struct m0_be_active_record_domain ar_dom 
)

Definition at line 278 of file active_record.c.

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

◆ m0_be_active_record_credit()

M0_INTERNAL void m0_be_active_record_credit ( struct m0_be_active_record rec,
enum m0_be_active_record_op  op,
struct m0_be_tx_credit accum 
)

Definition at line 306 of file active_record.c.

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

◆ m0_be_active_record_del()

M0_INTERNAL int m0_be_active_record_del ( const char *  subsys,
struct m0_be_active_record rec,
struct m0_be_tx tx 
)

Definition at line 367 of file active_record.c.

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

◆ m0_be_active_record_destroy()

M0_INTERNAL int m0_be_active_record_destroy ( struct m0_be_active_record rec,
struct m0_be_tx tx 
)

Definition at line 296 of file active_record.c.

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

◆ m0_be_active_record_domain__create()

M0_INTERNAL int m0_be_active_record_domain__create ( struct m0_be_active_record_domain **  dom,
struct m0_be_tx tx,
struct m0_be_seg seg,
const struct m0_buf path 
)

Definition at line 148 of file active_record.c.

Here is the call graph for this function:

◆ m0_be_active_record_domain__invariant()

M0_INTERNAL bool m0_be_active_record_domain__invariant ( struct m0_be_active_record_domain dom)

Definition at line 141 of file active_record.c.

Here is the caller graph for this function:

◆ m0_be_active_record_domain_credit()

M0_INTERNAL void m0_be_active_record_domain_credit ( struct m0_be_active_record_domain dom,
enum m0_be_active_record_domain_op  op,
uint8_t  subsys_nr,
struct m0_be_tx_credit accum 
)

Definition at line 217 of file active_record.c.

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

◆ m0_be_active_record_domain_destroy()

M0_INTERNAL int m0_be_active_record_domain_destroy ( struct m0_be_active_record_domain dom,
struct m0_be_tx tx 
)

Definition at line 184 of file active_record.c.

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

◆ m0_be_active_record_domain_fini()

M0_INTERNAL void m0_be_active_record_domain_fini ( struct m0_be_active_record_domain dom)

Definition at line 121 of file active_record.c.

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

◆ m0_be_active_record_domain_init()

M0_INTERNAL void m0_be_active_record_domain_init ( struct m0_be_active_record_domain dom,
struct m0_be_seg seg 
)

Definition at line 98 of file active_record.c.

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

◆ m0_be_active_record_fini()

M0_INTERNAL void m0_be_active_record_fini ( struct m0_be_active_record rec)

Definition at line 267 of file active_record.c.

◆ m0_be_active_record_init()

M0_INTERNAL void m0_be_active_record_init ( struct m0_be_active_record rec,
struct m0_be_active_record_domain ar_dom 
)

Definition at line 260 of file active_record.c.

◆ M0_BE_LIST_DEFINE() [1/2]

M0_BE_LIST_DEFINE ( ard  ,
static  ,
struct m0_be_active_record_domain_subsystem   
)

◆ M0_BE_LIST_DEFINE() [2/2]

M0_BE_LIST_DEFINE ( rds  ,
static  ,
struct m0_be_active_record   
)

◆ M0_BE_LIST_DESCR_DEFINE() [1/2]

M0_BE_LIST_DESCR_DEFINE ( ard  ,
"list of ar_domain_subsystem in ar_domain"  ,
static  ,
struct m0_be_active_record_domain_subsystem  ,
rds_link  ,
rds_magic  ,
M0_BE_ACT_REC_DOM_MAGIC  ,
M0_BE_ACT_REC_DOM_MAGIC   
)

◆ M0_BE_LIST_DESCR_DEFINE() [2/2]

M0_BE_LIST_DESCR_DEFINE ( rds  ,
"list of active_record in ar_domain_subsystem"  ,
static  ,
struct m0_be_active_record  ,
ar_link  ,
ar_magic  ,
M0_BE_ACT_REC_DOM_SUB_MAGIC  ,
M0_BE_ACT_REC_DOM_SUB_MAGIC   
)

Variable Documentation

◆ m0_be_active_record0

struct m0_be_0type m0_be_active_record0
Initial value:
= {
.b0_name = "M0_BE:ACTIVE_RECORD",
.b0_init = active_record0_init,
.b0_fini = active_record0_fini,
}
static void active_record0_fini(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
Definition: active_record.c:90
static int active_record0_init(struct m0_be_domain *dom, const char *suffix, const struct m0_buf *data)
Definition: active_record.c:71

Definition at line 65 of file active_record.c.