33 int main(
int argc,
char **argv)
55 "server endpoint (RM)",
56 LAMBDA(
void, (
const char *
string) {
60 LAMBDA(
void, (
const char *
string) {
63 "delay between write lock get and put",
67 printf(
"s %s, c %s, d %d\n", rm_ep, c_ep,
delay);
75 .rhia_dtm = (
void *)1,
76 .rhia_mdstore = (
void *)1,
86 ~(uint32_t)0, 1 << 17, 2);
88 goto services_terminate;
M0_INTERNAL int rm_write_lock_get(struct m0_rpc_machine *rpc_mach, const char *rm_ep)
#define M0_GETOPTS(progname, argc, argv,...)
void mach_fini(struct m0_addb2_mach *m)
void m0_rpc_machine_fini(struct m0_rpc_machine *machine)
M0_INTERNAL void m0_reqh_services_terminate(struct m0_reqh *reqh)
void m0_net_domain_fini(struct m0_net_domain *dom)
#define M0_REQH_INIT(reqh,...)
void m0_console_printf(const char *fmt,...)
int main(int argc, char **argv)
int m0_init(struct m0 *instance)
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
#define M0_STRINGARG(ch, desc, func)
return M0_ERR(-EOPNOTSUPP)
struct m0_reqh_service * rm_service
#define M0_FID_TINIT(type, container, key)
#define M0_FORMATARG(ch, desc, fmt, ptr)
M0_INTERNAL int m0_rpc_net_buffer_pool_setup(struct m0_net_domain *ndom, struct m0_net_buffer_pool *app_pool, uint32_t bufs_nr, uint32_t tm_nr)
M0_INTERNAL int m0_rpc_machine_init(struct m0_rpc_machine *machine, struct m0_net_domain *net_dom, const char *ep_addr, struct m0_reqh *reqh, struct m0_net_buffer_pool *receive_pool, uint32_t colour, m0_bcount_t msg_size, uint32_t queue_len)
struct m0_net_xprt * m0_net_xprt_default_get(void)
M0_INTERNAL int m0_reqh_service_setup(struct m0_reqh_service **out, struct m0_reqh_service_type *stype, struct m0_reqh *reqh, struct m0_reqh_context *rctx, const struct m0_fid *fid)
struct m0_reqh_service_type m0_rms_type
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
M0_INTERNAL void rm_write_lock_put()
static struct m0 instance
static void reqh_fini(void)
void m0_rpc_net_buffer_pool_cleanup(struct m0_net_buffer_pool *app_pool)
static struct m0_layout_domain domain
static const char * process_fid