Motr
M0
|
Functions | |
static int | confd_allocate (struct m0_reqh_service **service, const struct m0_reqh_service_type *stype) |
static int | confd_cache_preload (struct m0_conf_cache *cache, const char *str) |
M0_INTERNAL int | m0_confd_register (void) |
M0_INTERNAL void | m0_confd_unregister (void) |
static int | confd_start (struct m0_reqh_service *service) |
static void | confd_stop (struct m0_reqh_service *service) |
static void | confd_fini (struct m0_reqh_service *service) |
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) |
static bool | nil (const char *s) |
M0_INTERNAL int | m0_confd_service_to_filename (struct m0_reqh_service *service, char **dbpath) |
static int | conf_fetch_tick (struct m0_fom *fom) |
static int | conf_update_tick (struct m0_fom *fom) |
static int | confx_populate (struct m0_confx *dest, const struct m0_fid *origin, const struct m0_fid_arr *path, struct m0_conf_cache *cache) |
static size_t | confd_fom_locality (const struct m0_fom *fom) |
static void | confd_fom_fini (struct m0_fom *fom) |
M0_INTERNAL int | m0_confd_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh) |
static int | _count (size_t *n, struct m0_confx *enc M0_UNUSED, const struct m0_conf_obj *obj M0_UNUSED) |
static int | _encode (size_t *n, struct m0_confx *enc, const struct m0_conf_obj *obj) |
static int | readiness_check (const struct m0_conf_obj *obj) |
static int | confd_path_walk (struct m0_conf_obj *cur, const struct m0_fid_arr *path, int(*apply)(size_t *n, struct m0_confx *enc, const struct m0_conf_obj *obj), size_t *n, struct m0_confx *enc) |
static struct m0_conf_obj * | confd_cache_lookup (const struct m0_conf_cache *cache, const struct m0_fid *fid) |
static void | cache_ver_update (struct m0_conf_cache *cache) |
Variables | |
const struct m0_bob_type | m0_confd_bob |
static const struct m0_reqh_service_type_ops | confd_stype_ops |
struct m0_reqh_service_type | m0_confd_stype |
static const struct m0_reqh_service_ops | confd_ops |
static const struct m0_fom_ops | conf_fetch_fom_ops |
static const struct m0_fom_ops | conf_update_fom_ops |
|
static |
|
static |
Definition at line 158 of file confd_fom.c.
|
static |
Definition at line 255 of file confd_fom.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 242 of file confd_fom.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Traverses the DAG of configuration objects. Starts at ‘cur’ and follows the ‘path’, applying given function.
cur | Path origin. |
path | Sequence of path components as requested by confc. |
apply | The action to perform. |
n | Address of the counter to be used by apply(). |
enc | Encoded configuration data to be used by apply(). |
Definition at line 191 of file confd_fom.c.
|
static |
|
static |
|
static |
Definition at line 267 of file confd_fom.c.
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_register | ( | void | ) |
M0_INTERNAL int m0_confd_service_to_filename | ( | struct m0_reqh_service * | service, |
char ** | dbpath | ||
) |
M0_INTERNAL void m0_confd_unregister | ( | void | ) |
|
static |
|
static |
Definition at line 171 of file confd_fom.c.
|
static |
Definition at line 61 of file confd_fom.c.
|
static |
Definition at line 67 of file confd_fom.c.
|
static |
|
static |
const struct m0_bob_type m0_confd_bob |
struct m0_reqh_service_type m0_confd_stype |