Motr  M0
Configuration Service (confd)

Detailed Functional Specification. More...

Data Structures

struct  m0_confd
 
struct  m0_confd_fom
 

Functions

M0_INTERNAL int m0_confd_register (void)
 
M0_INTERNAL void m0_confd_unregister (void)
 
M0_INTERNAL int m0_confd_service_to_filename (struct m0_reqh_service *service, char **filename)
 
M0_INTERNAL int m0_confd_cache_create (struct m0_conf_cache **out, struct m0_mutex *cache_lock, const char *confstr)
 
M0_INTERNAL void m0_confd_cache_destroy (struct m0_conf_cache *cache)
 
M0_INTERNAL int m0_confd_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
 

Variables

struct m0_reqh_service_type m0_confd_stype
 
const struct m0_bob_type m0_confd_bob
 

Detailed Description

Detailed Functional Specification.

See also
Configuration Service (confd)

Function Documentation

◆ m0_confd_cache_create()

M0_INTERNAL int m0_confd_cache_create ( struct m0_conf_cache **  out,
struct m0_mutex cache_lock,
const char *  confstr 
)

Allocates conf cache and populates it using provided configuration string.

Definition at line 513 of file confd.c.

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

◆ m0_confd_cache_destroy()

M0_INTERNAL void m0_confd_cache_destroy ( struct m0_conf_cache cache)

Finalises conf cache, releases memory.

Definition at line 536 of file confd.c.

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

◆ m0_confd_fom_create()

M0_INTERNAL int m0_confd_fom_create ( struct m0_fop fop,
struct m0_fom **  out,
struct m0_reqh reqh 
)

Definition at line 73 of file confd_fom.c.

Here is the call graph for this function:

◆ m0_confd_register()

M0_INTERNAL int m0_confd_register ( void  )

Definition at line 460 of file confd.c.

Here is the call graph for this function:

◆ m0_confd_service_to_filename()

M0_INTERNAL int m0_confd_service_to_filename ( struct m0_reqh_service service,
char **  filename 
)

Definition at line 624 of file confd.c.

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

◆ m0_confd_unregister()

M0_INTERNAL void m0_confd_unregister ( void  )

Definition at line 465 of file confd.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_confd_bob

const struct m0_bob_type m0_confd_bob

Definition at line 443 of file confd.c.

◆ m0_confd_stype

struct m0_reqh_service_type m0_confd_stype

Definition at line 453 of file confd.c.