25 #ifndef __MOTR_REQH_REQH_SERVICE_H__ 26 #define __MOTR_REQH_REQH_SERVICE_H__ 794 uint32_t max_rpc_nr_in_flight);
805 uint32_t max_rpc_nr_in_flight,
M0_INTERNAL int m0_reqh_service_state_get(const struct m0_reqh_service *s)
M0_INTERNAL int m0_reqh_service_start_async(struct m0_reqh_service_start_async_ctx *asc)
M0_INTERNAL void m0_reqh_service_cancel_reconnect(struct m0_reqh_service_ctx *ctx)
struct m0_pools_common * sc_pc
M0_INTERNAL int m0_reqh_service_start(struct m0_reqh_service *service)
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_lookup(const struct m0_reqh *reqh, const struct m0_fid *fid)
M0_INTERNAL int m0_reqh_service_types_init(void)
int(* rso_start)(struct m0_reqh_service *service)
struct m0_fid sc_fid_process
M0_INTERNAL void m0_reqh_service_stop(struct m0_reqh_service *service)
struct m0_mutex sc_max_pending_tx_lock
enum m0_conf_service_type rst_typecode
M0_INTERNAL void m0_reqh_service_prepare_to_stop(struct m0_reqh_service *service)
M0_INTERNAL void m0_reqh_service_ctx_subscribe(struct m0_reqh_service_ctx *ctx)
void(* rso_fini)(struct m0_reqh_service *service)
M0_INTERNAL bool m0_reqh_service_ctx_is_connected(const struct m0_reqh_service_ctx *ctx)
M0_INTERNAL void m0_reqh_service_ctx_destroy(struct m0_reqh_service_ctx *ctx)
const struct m0_reqh_service_type_ops * rst_ops
M0_INTERNAL void m0_reqh_service_connect_wait(struct m0_reqh_service_ctx *ctx)
M0_INTERNAL int m0_reqh_service_types_length(void)
struct m0_conf_obj * sc_process
int m0_reqh_service_type_register(struct m0_reqh_service_type *rstype)
struct m0_reqh_service * sac_service
M0_INTERNAL struct m0_reqh_service_type * m0_reqh_service_type_find(const char *sname)
struct m0_buf rs_ss_param
struct m0_reqh_context rctx
struct m0_sm_group sc_sm_grp
M0_INTERNAL bool m0_reqh_service_is_registered(const char *sname)
struct m0_clink sc_rlink_abort
M0_INTERNAL int m0_reqh_service_disconnect_wait(struct m0_reqh_service_ctx *ctx)
void(* rso_stop)(struct m0_reqh_service *service)
static const struct socktype stype[]
M0_INTERNAL int m0_reqh_service_ctx_create(struct m0_conf_obj *svc_obj, enum m0_conf_service_type stype, struct m0_rpc_machine *rmach, const char *addr, uint32_t max_rpc_nr_in_flight, struct m0_reqh_service_ctx **out)
M0_INTERNAL void m0_reqh_service_connect(struct m0_reqh_service_ctx *ctx)
M0_INTERNAL void m0_reqh_service_quit(struct m0_reqh_service *svc)
struct m0_be_tx_remid stx_tri
int(* rso_fop_accept)(struct m0_reqh_service *service, struct m0_fop *fop)
M0_INTERNAL void m0_reqh_service_fini(struct m0_reqh_service *service)
struct m0_fid rs_service_fid
struct m0_reqh_context * rs_reqh_ctx
M0_INTERNAL bool m0_reqh_service_invariant(const struct m0_reqh_service *svc)
struct m0_reqh_service_ctx * stx_service_ctx
enum m0_service_health(* rso_health)(struct m0_reqh_service *service)
enum m0_conf_service_type sc_type
M0_INTERNAL int m0_reqh_service_allocate(struct m0_reqh_service **out, const struct m0_reqh_service_type *stype, struct m0_reqh_context *rctx)
M0_INTERNAL int m0_reqh_service_ctx_init(struct m0_reqh_service_ctx *ctx, struct m0_conf_obj *svc_obj, enum m0_conf_service_type stype, struct m0_rpc_machine *rmach, const char *addr, uint32_t max_rpc_nr_in_flight)
M0_INTERNAL void m0_reqh_service_ctx_unsubscribe(struct m0_reqh_service_ctx *ctx)
M0_INTERNAL void m0_reqh_service_init(struct m0_reqh_service *service, struct m0_reqh *reqh, const struct m0_fid *fid)
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)
int m0_reqh_service_async_start_simple(struct m0_reqh_service_start_async_ctx *asc)
struct m0_clink sc_rlink_wait
M0_INTERNAL struct m0_reqh_service * m0_reqh_service_find(const struct m0_reqh_service_type *st, const struct m0_reqh *reqh)
M0_INTERNAL void m0_reqh_service_types_fini(void)
int(* rsto_service_allocate)(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
struct m0_clink sc_process_event
struct m0_tlink stx_tlink
const struct m0_reqh_service_type * rs_type
void(* rso_prepare_to_stop)(struct m0_reqh_service *service)
M0_INTERNAL void m0_reqh_service_list_print(void)
static struct m0_net_test_service svc
struct m0_sm_ast sc_rlink_ast
static struct m0_fop * fop
struct m0_clink sc_svc_event
struct m0_tlink rs_linkage
M0_INTERNAL void m0_reqh_service_started(struct m0_reqh_service *service)
M0_INTERNAL void m0_reqh_service_disconnect(struct m0_reqh_service_ctx *ctx)
struct m0_conf_obj * sc_service
struct m0_rpc_link sc_rlink
M0_INTERNAL void m0_reqh_service_ctx_fini(struct m0_reqh_service_ctx *ctx)
static struct m0_addb2_source * s
void m0_reqh_service_type_unregister(struct m0_reqh_service_type *rstype)
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
M0_INTERNAL void m0_reqh_service_ctxs_shutdown_prepare(struct m0_reqh *reqh)
int(* rso_start_async)(struct m0_reqh_service_start_async_ctx *asc)
struct m0_reqh_service_txid sc_max_pending_tx
struct m0_tlink rst_linkage
M0_INTERNAL void m0_reqh_service_failed(struct m0_reqh_service *service)
const struct m0_reqh_service_ops * rs_ops
M0_INTERNAL struct m0_reqh_service_ctx * m0_reqh_service_ctx_from_session(struct m0_rpc_session *session)