Motr  M0
m0_addb2_storage Struct Reference
Collaboration diagram for m0_addb2_storage:
Collaboration graph

Data Fields

struct m0_stob_domainas_stob_dom
 
struct m0_stobas_stob
 
struct m0_mutex as_lock
 
unsigned as_bshift
 
m0_bcount_t as_size
 
m0_bindex_t as_pos
 
uint64_t as_seqno
 
m0_bindex_t as_prev_offset
 
struct m0_tl as_queue
 
struct m0_tl as_idle
 
struct m0_tl as_inflight
 
struct m0_tl as_pending
 
struct frame as_prealloc [MAX_INFLIGHT+1]
 
const struct m0_addb2_storage_opsas_ops
 
bool as_stopped
 
void * as_cookie
 
struct m0_addb2_trace_obj as_marker
 
bool as_idled
 

Detailed Description

Addb2 storage machine.

Definition at line 151 of file storage.c.

Field Documentation

◆ as_bshift

unsigned as_bshift

Stob block size shift.

Definition at line 168 of file storage.c.

◆ as_cookie

void* as_cookie

Opaque cookie passed to m0_addb2_storage_init() and returned by m0_addb2_storage_cookie().

Definition at line 215 of file storage.c.

◆ as_idle

struct m0_tl as_idle

List of frames ready for population with traces.

The head of this list is "current frame" (frame_cur()).

Definition at line 195 of file storage.c.

◆ as_idled

bool as_idled

Definition at line 220 of file storage.c.

◆ as_inflight

struct m0_tl as_inflight

The list of frames being written to stob.

Definition at line 199 of file storage.c.

◆ as_lock

struct m0_mutex as_lock

Lock to serialise all machine operations.

Definition at line 164 of file storage.c.

◆ as_marker

struct m0_addb2_trace_obj as_marker

Small trace used to mark when the storage engine is opened.

Definition at line 219 of file storage.c.

◆ as_ops

const struct m0_addb2_storage_ops* as_ops

Definition at line 209 of file storage.c.

◆ as_pending

struct m0_tl as_pending

Formed but still not launched frames.

Definition at line 203 of file storage.c.

◆ as_pos

m0_bindex_t as_pos

Offset in the stob where next frame will be written.

Definition at line 176 of file storage.c.

◆ as_prealloc

struct frame as_prealloc[MAX_INFLIGHT+1]

Pre-allocated frames. ->as_idle, ->as_pending and ->as_inflight contain elements of this array.

Definition at line 208 of file storage.c.

◆ as_prev_offset

m0_bindex_t as_prev_offset

Offset in the stob of the previous frame written.

Definition at line 184 of file storage.c.

◆ as_queue

struct m0_tl as_queue

Queue of trace buffer objects (linked through m0_addb2_trace_obj::to_linkage) still not placed in a frame.

Definition at line 189 of file storage.c.

◆ as_seqno

uint64_t as_seqno

Sequence number of the next frame to be written.

Definition at line 180 of file storage.c.

◆ as_size

m0_bcount_t as_size

Stob size, passed to m0_addb2_storage_init().

Definition at line 172 of file storage.c.

◆ as_stob

struct m0_stob* as_stob

Stob used to store traces.

Storage engine acquires a reference this the stob in m0_addb2_storage_init(), releases the reference in m0_addb2_storage_fini().

Definition at line 160 of file storage.c.

◆ as_stob_dom

struct m0_stob_domain* as_stob_dom

Definition at line 152 of file storage.c.

◆ as_stopped

bool as_stopped

Definition at line 210 of file storage.c.


The documentation for this struct was generated from the following file: