- See also
- Request handler
MD Service defines service operation vector -
- MD Service operation m0_mds_start()
Initiate buffer_pool and register I/O FOP with service
- MD Service operation m0_mds_stop()
Free buffer_pool and unregister I/O FOP with service
- MD Service operation m0_mds_fini()
Free MD Service instance.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_MDS |
◆ m0_mds_register()
M0_INTERNAL int m0_mds_register |
( |
void |
| ) |
|
◆ m0_mds_unregister()
M0_INTERNAL void m0_mds_unregister |
( |
void |
| ) |
|
◆ mds_allocate()
Allocates and initiates MD Service instance. This operation allocates & initiates service instance with its operation vector.
Definition at line 122 of file md_service.c.
◆ mds_fini()
Finalise MD Service instance. This operation finalises service instance and de-allocate it.
- Parameters
-
service | pointer to service instance. |
- Precondition
- service != NULL
Definition at line 148 of file md_service.c.
◆ mds_start()
Start MD Service.
- Parameters
-
service | pointer to service instance. |
- Precondition
- service != NULL
- Todo:
- XXX change this when reqh will be started before services, see MOTR-317
Definition at line 164 of file md_service.c.
◆ mds_stop()
Stops MD Service.
- Parameters
-
service | pointer to service instance. |
- Precondition
- service != NULL
Definition at line 197 of file md_service.c.
◆ m0_mds_type
Initial value:= {
.rst_name = "M0_CST_MDS",
.rst_typecode = M0_CST_MDS,
}
static const struct m0_reqh_service_type_ops mds_type_ops
Definition at line 72 of file md_service.c.
◆ M0_XCA_DOMAIN
◆ mds_ops
Initial value:= {
}
static void mds_stop(struct m0_reqh_service *service)
int m0_reqh_service_async_start_simple(struct m0_reqh_service_start_async_ctx *asc)
static void mds_fini(struct m0_reqh_service *service)
static int mds_start(struct m0_reqh_service *service)
MD Service operations.
Definition at line 65 of file md_service.c.
◆ mds_type_ops
Initial value:= {
}
static int mds_allocate(struct m0_reqh_service **service, const struct m0_reqh_service_type *stype)
MD Service type operations.
Definition at line 58 of file md_service.c.