25 #ifndef __MOTR_LIB_LOCALITY_H__ 26 #define __MOTR_LIB_LOCALITY_H__ 144 void (*dtor)(
void *,
void *),
void *datum);
148 void (*func)(
int idx,
void *
data,
void *datum),
M0_INTERNAL struct m0_locality * m0_locality_get(uint64_t value)
static size_t locality(const struct m0_fom *fom)
void * m0_locality_data(int key)
static struct m0_sm_group * grp
M0_INTERNAL void m0_locality_fini(struct m0_locality *loc)
M0_INTERNAL int m0_localities_init(void)
M0_INTERNAL void m0_locality_dom_unset(struct m0_fom_domain *dom)
struct m0_fom_domain * lo_dom
int const char const void * value
int m0_locality_call(struct m0_locality *loc, int(*cb)(void *), void *data)
M0_INTERNAL void m0_locality_chores_run(struct m0_locality *locality)
int(* co_enter)(struct m0_locality_chore *chore, struct m0_locality *loc, void *place)
void m0_locality_data_free(int key)
void(* co_leave)(struct m0_locality_chore *chore, struct m0_locality *loc, void *place)
M0_INTERNAL void m0_locality_dom_set(struct m0_fom_domain *dom)
struct m0_tlink lc_linkage
static struct m0_stob_domain * dom
const struct m0_locality_chore_ops * lc_ops
int m0_locality_chore_init(struct m0_locality_chore *chore, const struct m0_locality_chore_ops *ops, void *datum, m0_time_t interval, size_t datasize)
struct m0_sm_group * lo_grp
static int ctor(void *area, void *cookie)
M0_INTERNAL struct m0_locality * m0_locality_here(void)
void m0_locality_chore_fini(struct m0_locality_chore *chore)
M0_INTERNAL void m0_localities_fini(void)
struct m0_locality_lockers lo_lockers
M0_INTERNAL struct m0_locality * m0_locality0_get(void)
M0_LOCKERS_DECLARE(M0_EXTERN, m0_locality, M0_LOCALITY_LOCKERS_NR)
M0_INTERNAL struct m0_fom_domain * m0_fom_dom(void)
M0_INTERNAL void m0_locality_init(struct m0_locality *loc, struct m0_sm_group *grp, struct m0_fom_domain *dom, size_t idx)
void m0_locality_data_iterate(int key, void(*func)(int idx, void *data, void *datum), void *datum)
int m0_locality_data_alloc(size_t nob, int(*ctor)(void *, void *), void(*dtor)(void *, void *), void *datum)
void(* co_tick)(struct m0_locality_chore *chore, struct m0_locality *loc, void *place)
void m0_locality_chore_quit(struct m0_locality_chore *chore)