Motr  M0
service.h File Reference
#include "reqh/reqh_service.h"
#include "dtm0/clk_src.h"
Include dependency graph for service.h:

Go to the source code of this file.

Data Structures

struct  m0_dtm0_service
 

Macros

#define __MOTR_DTM0_SERVICE_H__
 

Enumerations

enum  m0_dtm0_service_origin { DTM0_UNKNOWN = 0, DTM0_ON_VOLATILE, DTM0_ON_PERSISTENT }
 

Functions

M0_INTERNAL int m0_dtm0_stype_init (void)
 
M0_INTERNAL void m0_dtm0_stype_fini (void)
 
M0_INTERNAL int m0_dtm_client_service_start (struct m0_reqh *reqh, struct m0_fid *cli_srv_fid, struct m0_reqh_service **out)
 
M0_INTERNAL void m0_dtm_client_service_stop (struct m0_reqh_service *svc)
 
M0_INTERNAL int m0_dtm0_service_process_connect (struct m0_reqh_service *s, struct m0_fid *remote_srv, const char *remote_ep, bool async)
 
M0_INTERNAL int m0_dtm0_service_process_disconnect (struct m0_reqh_service *s, struct m0_fid *remote_srv)
 
M0_INTERNAL struct m0_rpc_sessionm0_dtm0_service_process_session_get (struct m0_reqh_service *s, const struct m0_fid *remote_srv)
 
M0_INTERNAL bool m0_dtm0_is_a_volatile_dtm (struct m0_reqh_service *service)
 
M0_INTERNAL bool m0_dtm0_is_a_persistent_dtm (struct m0_reqh_service *service)
 
M0_INTERNAL struct m0_dtm0_servicem0_dtm0_service_find (const struct m0_reqh *reqh)
 
M0_INTERNAL struct m0_dtm0_servicem0_dtm0_fom2service (struct m0_fom *fom)
 
M0_INTERNAL bool m0_dtm0_in_ut (void)
 

Variables

struct m0_reqh_service_type dtm0_service_type
 

Macro Definition Documentation

◆ __MOTR_DTM0_SERVICE_H__

#define __MOTR_DTM0_SERVICE_H__

Definition at line 26 of file service.h.

Enumeration Type Documentation

◆ m0_dtm0_service_origin

Enumerator
DTM0_UNKNOWN 
DTM0_ON_VOLATILE 
DTM0_ON_PERSISTENT 

Definition at line 35 of file service.h.

Function Documentation

◆ m0_dtm0_fom2service()

M0_INTERNAL struct m0_dtm0_service* m0_dtm0_fom2service ( struct m0_fom fom)

Get the DTM0 service this FOM belongs to.

Definition at line 88 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm0_in_ut()

M0_INTERNAL bool m0_dtm0_in_ut ( void  )

Definition at line 415 of file service.c.

Here is the caller graph for this function:

◆ m0_dtm0_is_a_persistent_dtm()

M0_INTERNAL bool m0_dtm0_is_a_persistent_dtm ( struct m0_reqh_service service)

Definition at line 399 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm0_is_a_volatile_dtm()

M0_INTERNAL bool m0_dtm0_is_a_volatile_dtm ( struct m0_reqh_service service)

Definition at line 393 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm0_service_find()

M0_INTERNAL struct m0_dtm0_service* m0_dtm0_service_find ( const struct m0_reqh reqh)

Definition at line 406 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm0_service_process_connect()

M0_INTERNAL int m0_dtm0_service_process_connect ( struct m0_reqh_service s,
struct m0_fid remote_srv,
const char *  remote_ep,
bool  async 
)

Definition at line 158 of file service.c.

◆ m0_dtm0_service_process_disconnect()

M0_INTERNAL int m0_dtm0_service_process_disconnect ( struct m0_reqh_service s,
struct m0_fid remote_srv 
)

Definition at line 209 of file service.c.

Here is the call graph for this function:

◆ m0_dtm0_service_process_session_get()

M0_INTERNAL struct m0_rpc_session* m0_dtm0_service_process_session_get ( struct m0_reqh_service s,
const struct m0_fid remote_srv 
)

Definition at line 222 of file service.c.

Here is the call graph for this function:

◆ m0_dtm0_stype_fini()

M0_INTERNAL void m0_dtm0_stype_fini ( void  )

Definition at line 385 of file service.c.

Here is the call graph for this function:

◆ m0_dtm0_stype_init()

M0_INTERNAL int m0_dtm0_stype_init ( void  )

Definition at line 374 of file service.c.

Here is the call graph for this function:

◆ m0_dtm_client_service_start()

M0_INTERNAL int m0_dtm_client_service_start ( struct m0_reqh reqh,
struct m0_fid cli_srv_fid,
struct m0_reqh_service **  out 
)

Definition at line 113 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm_client_service_stop()

M0_INTERNAL void m0_dtm_client_service_stop ( struct m0_reqh_service svc)

Definition at line 139 of file service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dtm0_service_type

struct m0_reqh_service_type dtm0_service_type

Definition at line 60 of file service.c.