39 #include "ut/cs_fop_xc.h" 126 m0_xc_ut_cs_fop_fini();
136 m0_xc_ut_cs_fop_init();
138 .
name =
"ds1 request",
140 .
xt = cs_ds1_req_fop_xc,
148 .
xt = cs_ds1_rep_fop_xc,
158 m0_xc_ut_cs_fop_fini();
168 m0_xc_ut_cs_fop_init();
170 .
name =
"ds2 request",
172 .
xt = cs_ds2_req_fop_xc,
180 .
xt = cs_ds2_rep_fop_xc,
uint32_t m0_fop_opcode(const struct m0_fop *fop)
static void cs_ut_fom_fini(struct m0_fom *fom)
static const struct m0_fom_ops cs_ds2_req_fop_fom_ops
void m0_cs_ut_ds1_fop_fini(void)
#define M0_FOP_TYPE_INIT(ft,...)
int m0_cs_ut_ds2_fop_init(void)
static const struct m0_fom_type_ops cs_ds1_req_fop_fom_type_ops
int(* fto_create)(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
struct m0_reqh_service_type ds1_service_type
static int cs_ds_req_fop_fom_create(struct m0_fop *fop, const struct m0_fom_ops *ops, struct m0_fom **out, struct m0_reqh *reqh)
void * m0_fop_data(const struct m0_fop *fop)
void m0_fop_type_fini(struct m0_fop_type *fopt)
struct m0_fop_type cs_ds1_rep_fop_fopt
static struct m0_xcode_type ** xt[]
m0_time_t m0_time(uint64_t secs, long ns)
const struct m0_sm_conf m0_generic_conf
static struct m0_rpc_item * item
struct m0_fom_type ft_fom_type
static int cs_ds1_req_fop_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
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)
static const struct m0_fom_type_ops cs_ds2_req_fop_fom_type_ops
struct m0_fop_type * f_type
static int cs_ds2_req_fop_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
const struct m0_rpc_item_ops cs_ds_req_fop_rpc_item_ops
int m0_fom_tick_generic(struct m0_fom *fom)
struct m0_fop_type cs_ds2_rep_fop_fopt
void m0_fom_fini(struct m0_fom *fom)
struct m0_reqh_service_type ds2_service_type
static void cs_ut_rpc_item_reply_cb(struct m0_rpc_item *item)
static const struct m0_fom_ops cs_ds1_req_fop_fom_ops
int m0_cs_ut_ds1_fop_init(void)
void m0_cs_ut_ds2_fop_fini(void)
struct m0_rpc_item * ri_reply
struct m0_fop_type cs_ds2_req_fop_fopt
struct m0_fop_type cs_ds1_req_fop_fopt
struct m0_fop * m0_fop_reply_alloc(struct m0_fop *req, struct m0_fop_type *rept)
void(* rio_replied)(struct m0_rpc_item *item)
int32_t m0_rpc_item_error(const struct m0_rpc_item *item)
static size_t cs_ut_find_fom_home_locality(const struct m0_fom *fom)
#define M0_FI_ENABLED(tag)
#define M0_ALLOC_PTR(ptr)
void m0_ut_fom_phase_set(struct m0_fom *fom, int phase)
static struct m0_fop * fop
struct m0_fop * m0_rpc_item_to_fop(const struct m0_rpc_item *item)
void(* fo_fini)(struct m0_fom *fom)
void m0_fom_phase_set(struct m0_fom *fom, int phase)
static struct m0_dtm_oper_descr reply
static int cs_req_fop_fom_tick(struct m0_fom *fom)
int m0_nanosleep(const m0_time_t req, m0_time_t *rem)