25 #ifndef __MOTR_STOB_DOMAIN_H__ 26 #define __MOTR_STOB_DOMAIN_H__ 117 const struct m0_fid *stob_fid);
136 const struct m0_fid *stob_fid);
144 const struct m0_fid *stob_fid,
154 const char *str_cfg_init,
170 const char *str_cfg_init,
172 const char *str_cfg_create,
209 const char *str_cfg_init,
211 const char *str_cfg_create,
227 M0_INTERNAL
const struct m0_fid *
230 M0_INTERNAL
const char *
244 uint64_t dom_container,
260 const struct m0_fid *stob_fid);
M0_INTERNAL void m0_stob_domain__stob_free(struct m0_stob_domain *dom, struct m0_stob *stob)
M0_INTERNAL uint64_t m0_stob_domain__dom_key(const struct m0_fid *dom_id)
M0_INTERNAL struct m0_stob_domain * m0_stob_domain_find(const struct m0_fid *dom_id)
M0_INTERNAL void m0_stob_domain__dom_id_make(struct m0_fid *dom_id, uint8_t type_id, uint64_t dom_container, uint64_t dom_key)
M0_INTERNAL const struct m0_fid * m0_stob_domain_id_get(const struct m0_stob_domain *dom)
M0_INTERNAL int m0_stob_domain_destroy(struct m0_stob_domain *dom)
void(* sdo_stob_free)(struct m0_stob_domain *dom, struct m0_stob *stob)
M0_INTERNAL bool m0_stob_domain_is_of_type(const struct m0_stob_domain *dom, const struct m0_stob_type *dt)
void(* sdo_fini)(struct m0_stob_domain *dom)
void(* sdo_stob_create_credit)(struct m0_stob_domain *dom, struct m0_be_tx_credit *accum)
M0_INTERNAL struct m0_stob_domain * m0_stob_domain_find_by_location(const char *location)
void(* sdo_stob_cfg_free)(void *cfg_create)
M0_INTERNAL bool m0_stob_domain__dom_key_is_valid(uint64_t dom_key)
M0_INTERNAL int m0_stob_domain_create(const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
M0_INTERNAL struct m0_stob_cache * m0_stob_domain__cache(struct m0_stob_domain *dom)
static struct m0_stob * stob
struct m0_tlink sd_domain_linkage
struct m0_stob_cache sd_cache
static struct m0_stob_domain * dom
int(* sdo_stob_create)(struct m0_stob *stob, struct m0_stob_domain *dom, struct m0_dtx *dtx, const struct m0_fid *stob_fid, void *cfg)
static struct m0_stob_io io
M0_INTERNAL struct m0_stob_domain * m0_stob_domain_find_by_stob_id(const struct m0_stob_id *stob_id)
M0_INTERNAL void m0_stob_domain_fini(struct m0_stob_domain *dom)
M0_INTERNAL int m0_stob_domain_destroy_location(const char *location)
struct m0_stob_type * sd_type
M0_INTERNAL int m0_stob_domain_init(const char *location, const char *str_cfg_init, struct m0_stob_domain **out)
M0_INTERNAL int m0_stob_domain_create_or_init(const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
M0_INTERNAL const char * m0_stob_domain_location_get(const struct m0_stob_domain *dom)
M0_INTERNAL struct m0_stob * m0_stob_domain__stob_alloc(struct m0_stob_domain *dom, const struct m0_fid *stob_fid)
M0_INTERNAL void m0_stob_domain__id_set(struct m0_stob_domain *dom, struct m0_fid *dom_id)
int(* sdo_stob_cfg_parse)(const char *str_cfg_create, void **cfg_create)
M0_INTERNAL bool m0_stob_domain__invariant(struct m0_stob_domain *dom)
void(* sdo_stob_write_credit)(const struct m0_stob_domain *dom, const struct m0_stob_io *io, struct m0_be_tx_credit *accum)
int(* sdo_stob_init)(struct m0_stob *stob, struct m0_stob_domain *dom, const struct m0_fid *stob_fid)
const struct m0_stob_domain_ops * sd_ops
M0_INTERNAL uint8_t m0_stob_domain__type_id(const struct m0_fid *dom_id)