29 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FOP 59 if (
conf->scf_trans_nr > 0)
64 *fomt = (typeof(*fomt)) {
91 for (
i = 0;
i <
nr; ++
i)
107 #define FOM_SIMPLE(fom) (container_of(fom, struct m0_fom_simple, si_fom)) 226 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL void m0_sm_conf_init(struct m0_sm_conf *conf)
static void tick(struct m0_locality_chore *chore, struct m0_locality *loc, void *place)
int(* rso_start)(struct m0_reqh_service *service)
static size_t locality(const struct m0_fom *fom)
static struct m0_reqh_service_type fom_simple_rstype
static void fom_simple_service_stop(struct m0_reqh_service *service)
static const struct m0_reqh_service_type_ops fom_simple_rsops
static void fom_simple_fini(struct m0_fom *fom)
int m0_reqh_service_type_register(struct m0_reqh_service_type *rstype)
const struct m0_fom_type * fo_type
M0_INTERNAL void m0_fom_simples_fini(void)
M0_INTERNAL void m0_fom_simple_post(struct m0_fom_simple *simpleton, struct m0_reqh *reqh, struct m0_sm_conf *conf, int(*tick)(struct m0_fom *, void *, int *), void(*free)(struct m0_fom_simple *sfom), void *data, size_t locality)
static void fom_simple_service_prepare_to_stop(struct m0_reqh_service *service)
static int fom_simple_service_allocate(struct m0_reqh_service **out, const struct m0_reqh_service_type *stype)
void m0_fom_init(struct m0_fom *fom, const struct m0_fom_type *fom_type, const struct m0_fom_ops *ops, struct m0_fop *fop, struct m0_fop *reply, struct m0_reqh *reqh)
return M0_ERR(-EOPNOTSUPP)
M0_EXTERN struct m0_sm_conf fom_states_conf
static const struct socktype stype[]
static const struct m0_fom_type_ops fom_simple_ft_ops
void m0_fom_fini(struct m0_fom *fom)
int(* si_tick)(struct m0_fom *fom, void *data, int *phase)
static int fom_simple_service_start(struct m0_reqh_service *service)
static const struct m0_reqh_service_ops fom_simple_service_ops
void(* si_free)(struct m0_fom_simple *sfom)
M0_INTERNAL void m0_fom_simple_hoard(struct m0_fom_simple *cat, size_t nr, struct m0_reqh *reqh, struct m0_sm_conf *conf, int(*tick)(struct m0_fom *, void *, int *), void(*free)(struct m0_fom_simple *sfom), void *data)
M0_INTERNAL struct m0_locality * m0_locality_here(void)
struct m0_fom_type si_type
const struct m0_fom_type_ops * ft_ops
static size_t fom_simple_locality_get(const struct m0_fom *fom)
M0_INTERNAL int m0_reqh_state_get(struct m0_reqh *reqh)
static void fom_simple_service_fini(struct m0_reqh_service *service)
int(* rsto_service_allocate)(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
static struct m0_sm_state_descr fom_simple_phases[]
#define M0_ALLOC_PTR(ptr)
static int fom_simple_tick(struct m0_fom *fom)
M0_INTERNAL int m0_fom_simples_init(void)
static const struct m0_fom_ops fom_simple_ops
struct m0_sm_conf ft_conf
M0_INTERNAL void m0_fom_queue(struct m0_fom *fom)
void(* fo_fini)(struct m0_fom *fom)
void m0_fom_phase_set(struct m0_fom *fom, int phase)
static struct m0_sm_conf fom_simple_conf
void m0_reqh_service_type_unregister(struct m0_reqh_service_type *rstype)
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
M0_INTERNAL struct m0_reqh * m0_fom_reqh(const struct m0_fom *fom)
const struct m0_reqh_service_ops * rs_ops