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

Data Fields

struct m0_addb2_config sy_conf
 
struct m0_mutex sy_lock
 
struct m0_addb2_storagesy_stor
 
struct m0_addb2_netsy_net
 
struct m0_tl sy_queue
 
m0_bcount_t sy_queued
 
struct m0_mutex sy_qlock
 
struct m0_sm_ast sy_ast
 
struct m0_sm_ast_wait sy_astwait
 
struct m0_tl sy_pool
 
struct m0_tl sy_granted
 
struct m0_tl sy_moribund
 
struct m0_tl sy_deathrow
 
m0_bcount_t sy_total
 
struct m0_semaphore sy_wait
 
struct m0_list sy_counters
 
struct m0_addb2_machsy_stash
 

Detailed Description

Sys object.

Definition at line 82 of file sys.c.

Field Documentation

◆ sy_ast

struct m0_sm_ast sy_ast

Definition at line 119 of file sys.c.

◆ sy_astwait

struct m0_sm_ast_wait sy_astwait

Definition at line 120 of file sys.c.

◆ sy_conf

struct m0_addb2_config sy_conf

Configuration for the machines created by this sys object.

Definition at line 86 of file sys.c.

◆ sy_counters

struct m0_list sy_counters

List of counters registered via m0_addb2_sys_counter_add().

Definition at line 148 of file sys.c.

◆ sy_deathrow

struct m0_tl sy_deathrow

Stopped machines, waiting for finalisation.

Definition at line 136 of file sys.c.

◆ sy_granted

struct m0_tl sy_granted

Machines handed off to users.

Definition at line 128 of file sys.c.

◆ sy_lock

struct m0_mutex sy_lock

Lock for all fields of this structure, except for ->sy_queue, ->sy_queued and ->sy_astwait.

Definition at line 91 of file sys.c.

◆ sy_moribund

struct m0_tl sy_moribund

Machines being stopped.

Definition at line 132 of file sys.c.

◆ sy_net

struct m0_addb2_net* sy_net

Network back-end.

Definition at line 99 of file sys.c.

◆ sy_pool

struct m0_tl sy_pool

Cached machines.

Definition at line 124 of file sys.c.

◆ sy_qlock

struct m0_mutex sy_qlock

This lock protects for ->sy_queue, ->sy_queued and ->sy_astwait. A separate lock is needed to make it possible to call m0_addb2_sys_submit() under other locks. ->sy_qlock nests within ->sy_lock.

Definition at line 118 of file sys.c.

◆ sy_queue

struct m0_tl sy_queue

Addb2 trace queue.

Addb2 traces are queued on this list (via m0_addb2_trace_obj::o_linkage, tr_tlist) by m0_addb2_sys_submit() and de-qeued in the AST context by sys_balance().

Definition at line 107 of file sys.c.

◆ sy_queued

m0_bcount_t sy_queued

Length of ->sy_queue.

Definition at line 111 of file sys.c.

◆ sy_stash

struct m0_addb2_mach* sy_stash

Addb2 machine that was associated with the current thread before sys_lock() call, which see for the explanation.

Definition at line 153 of file sys.c.

◆ sy_stor

struct m0_addb2_storage* sy_stor

Storage back-end.

Definition at line 95 of file sys.c.

◆ sy_total

m0_bcount_t sy_total

Total number of machines: pooled, granted, moribund and deathrowed.

Definition at line 140 of file sys.c.

◆ sy_wait

struct m0_semaphore sy_wait

Semaphore to wait until back-end stops.

Definition at line 144 of file sys.c.


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