25 #ifndef __MOTR_BE_DOMAIN_H__ 26 #define __MOTR_BE_DOMAIN_H__ 34 #include "stob/stob_xc.h" 267 uint32_t *tx_per_group);
M0_INTERNAL void m0_be_domain_seg_create_credit(struct m0_be_domain *dom, const struct m0_be_0type_seg_cfg *seg_cfg, struct m0_be_tx_credit *cred)
M0_INTERNAL void m0_be_domain__0type_unregister(struct m0_be_domain *dom, struct m0_be_0type *type)
M0_INTERNAL bool m0_be_domain_is_stob_log(struct m0_be_domain *dom, const struct m0_stob_id *stob_id)
M0_INTERNAL int m0_be_domain_seg_create(struct m0_be_domain *dom, struct m0_be_tx *tx, const struct m0_be_0type_seg_cfg *seg_cfg, struct m0_be_seg **out)
M0_INTERNAL bool m0_be_domain_is_locked(const struct m0_be_domain *dom)
struct m0_be_0type_seg_cfg bc_seg0_cfg
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg0_get(struct m0_be_domain *dom)
uint32_t bc_zone_pcnt[M0_BAP_NR]
M0_INTERNAL void m0_be_domain__0type_register(struct m0_be_domain *dom, struct m0_be_0type *type)
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg_by_addr(struct m0_be_domain *dom, void *addr)
M0_INTERNAL bool m0_be_domain_is_stob_seg(struct m0_be_domain *dom, const struct m0_stob_id *stob_id)
struct m0_be_domain_cfg bd_cfg
M0_INTERNAL void m0_be_domain_seg_destroy_credit(struct m0_be_domain *dom, struct m0_be_seg *seg, struct m0_be_tx_credit *cred)
struct m0_stob * bd_seg0_stob
M0_INTERNAL struct m0_be_engine * m0_be_domain_engine(struct m0_be_domain *dom)
const char * bsc_stob_create_cfg
struct m0_be_0type bd_0type_seg
uint64_t bc_stob_domain_key
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg(const struct m0_be_domain *dom, const void *addr)
static struct m0_stob_domain * dom
M0_INTERNAL struct m0_be_log * m0_be_domain_log(struct m0_be_domain *dom)
M0_INTERNAL void m0_be_domain_cleanup_by_location(const char *stob_domain_location)
const char * bc_stob_domain_cfg_init
M0_INTERNAL void m0_be_domain__group_limits(struct m0_be_domain *dom, uint32_t *group_nr, uint32_t *tx_per_group)
struct m0_be_0type * bd_0types_allocated
M0_INTERNAL bool m0_be_domain_seg_is_valid(struct m0_be_domain *dom, struct m0_be_seg *seg)
struct m0_module bd_module
struct m0_be_pd_cfg bc_pd_cfg
const struct m0_be_0type ** bc_0types
struct m0_be_log_discard_cfg bc_log_discard_cfg
M0_INTERNAL void m0_be_domain_module_setup(struct m0_be_domain *dom, const struct m0_be_domain_cfg *cfg)
struct m0_stob_domain * bd_stob_domain
struct m0_be_0type_seg_cfg * bc_seg_cfg
M0_INTERNAL void m0_be_domain_tx_size_max(struct m0_be_domain *dom, struct m0_be_tx_credit *cred, m0_bcount_t *payload_size)
uint64_t bc_seg0_stob_key
const char * bc_stob_domain_location
struct m0_be_domain_cfg M0_XCA_DOMAIN
struct m0_be_log_cfg bc_log
static struct m0_be_seg * seg
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg_first(const struct m0_be_domain *dom)
M0_INTERNAL void be_domain_log_cleanup(const char *stob_domain_location, struct m0_be_log_cfg *log_cfg, bool create)
M0_INTERNAL int m0_be_segobj_opt_next(struct m0_be_seg *dict, const struct m0_be_0type *objtype, struct m0_buf *opt, char **suffix)
const char * bc_stob_domain_cfg_create
struct m0_be_engine bd_engine
M0_INTERNAL struct m0_be_seg * m0_be_domain_seg_by_id(const struct m0_be_domain *dom, uint64_t id)
struct m0_mutex bd_engine_lock
struct m0_be_log_discard bd_log_discard
M0_INTERNAL int m0_be_domain_seg_destroy(struct m0_be_domain *dom, struct m0_be_tx *tx, struct m0_be_seg *seg)
M0_INTERNAL int m0_be_segobj_opt_begin(struct m0_be_seg *dict, const struct m0_be_0type *objtype, struct m0_buf *opt, char **suffix)
struct m0_be_engine_cfg bc_engine
M0_INTERNAL struct m0_be_tx * m0_be_domain_tx_find(struct m0_be_domain *dom, uint64_t id)
static struct m0_be_ut_backend be