Motr  M0
sys.c File Reference
#include "lib/misc.h"
#include "lib/arith.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/finject.h"
#include "lib/locality.h"
#include "lib/trace.h"
#include "lib/thread.h"
#include "pool/pool.h"
#include "module/instance.h"
#include "addb2/addb2.h"
#include "addb2/storage.h"
#include "addb2/net.h"
#include "addb2/identifier.h"
#include "addb2/internal.h"
#include "addb2/sys.h"
Include dependency graph for sys.c:

Go to the source code of this file.

Data Structures

struct  m0_addb2_sys
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_ADDB
 

Functions

static void sys_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void sys_post (struct m0_addb2_sys *sys)
 
static void sys_idle (struct m0_addb2_mach *mach)
 
static void sys_lock (struct m0_addb2_sys *sys)
 
static void sys_unlock (struct m0_addb2_sys *sys)
 
static void sys_qlock (struct m0_addb2_sys *sys)
 
static void sys_qunlock (struct m0_addb2_sys *sys)
 
static void sys_balance (struct m0_addb2_sys *sys)
 
static bool sys_invariant (const struct m0_addb2_sys *sys)
 
static bool sys_queue_invariant (const struct m0_addb2_sys *sys)
 
static int sys_submit (struct m0_addb2_mach *mach, struct m0_addb2_trace_obj *obj)
 
static void net_idle (struct m0_addb2_net *net, void *datum)
 
static void net_stop (struct m0_addb2_sys *sys)
 
static void stor_stop (struct m0_addb2_sys *sys)
 
static m0_bcount_t sys_size (const struct m0_addb2_sys *sys)
 
int m0_addb2_sys_init (struct m0_addb2_sys **out, const struct m0_addb2_config *conf)
 
void m0_addb2_sys_fini (struct m0_addb2_sys *sys)
 
struct m0_addb2_machm0_addb2_sys_get (struct m0_addb2_sys *sys)
 
void m0_addb2_sys_put (struct m0_addb2_sys *sys, struct m0_addb2_mach *m)
 
int m0_addb2_sys_net_start (struct m0_addb2_sys *sys)
 
void m0_addb2_sys_net_stop (struct m0_addb2_sys *sys)
 
int m0_addb2_sys_net_start_with (struct m0_addb2_sys *sys, struct m0_tl *head)
 
int m0_addb2_sys_stor_start (struct m0_addb2_sys *sys, const char *location, uint64_t key, bool mkfs, bool force, m0_bcount_t size)
 
void m0_addb2_sys_stor_stop (struct m0_addb2_sys *sys)
 
void m0_addb2_sys_sm_start (struct m0_addb2_sys *sys)
 
void m0_addb2_sys_sm_stop (struct m0_addb2_sys *sys)
 
int m0_addb2_sys_submit (struct m0_addb2_sys *sys, struct m0_addb2_trace_obj *obj)
 
void m0_addb2_sys_attach (struct m0_addb2_sys *sys, struct m0_addb2_sys *src)
 
void m0_addb2_sys_detach (struct m0_addb2_sys *sys)
 
void m0_addb2_sys_counter_add (struct m0_addb2_sys *sys, struct m0_addb2_counter *counter, uint64_t id)
 
M0_INTERNAL bool m0_addb2_net__is_not_locked (const struct m0_addb2_net *net)
 
M0_INTERNAL bool m0_addb2_storage__is_not_locked (const struct m0_addb2_storage *stor)
 
static void stor_idle (struct m0_addb2_storage *stor)
 

Variables

static const struct m0_addb2_mach_ops sys_mach_ops
 
static const struct m0_addb2_storage_ops sys_stor_ops
 
void(* m0_addb2__sys_submit_trap )(struct m0_addb2_sys *sys, struct m0_addb2_trace_obj *obj) = NULL
 
void(* m0_addb2__sys_ast_trap )(struct m0_addb2_sys *sys) = NULL