31 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONSOLE 60 fprintf(stderr,
"Error while waiting for reply: %d\n",
63 fprintf(stderr,
"m0_rpc_post failed!\n");
77 fprintf(stderr,
"FOP allocation failed\n");
92 fprintf(stdout,
"List of FOP's: \n");
98 #undef M0_TRACE_SUBSYSTEM M0_INTERNAL int m0_rpc_post(struct m0_rpc_item *item)
m0_time_t ri_resend_interval
enum m0_rpc_item_priority ri_prio
const m0_time_t M0_TIME_NEVER
static struct m0_addb2_mach * mach
static struct m0_rpc_item * item
int m0_rpc_item_wait_for_reply(struct m0_rpc_item *item, m0_time_t timeout)
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
M0_INTERNAL struct m0_fop_type * m0_fop_type_next(struct m0_fop_type *ftype)
M0_INTERNAL int m0_cons_fop_send(struct m0_fop *fop, struct m0_rpc_session *session, m0_time_t resend_interval, uint64_t nr_sent_max)
Builds and send FOP using rpc_post and waits for reply.
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL int m0_cons_fop_fields_show(struct m0_fop *fop)
Iterate over FOP fields and prints the names.
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
M0_INTERNAL int m0_cons_fop_show(struct m0_fop_type *fopt)
Iterate over FOP fields and print names.
struct m0_rpc_session * ri_session
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
struct m0_rpc_item_type ft_rpc_item_type
M0_INTERNAL void m0_cons_fop_list_show(void)
Helper function to print list of FOPs.
M0_INTERNAL void m0_cons_fop_name_print(const struct m0_fop_type *ftype)
struct m0_rpc_item f_item
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)