Motr  M0
rconfc.h File Reference
#include "lib/mutex.h"
#include "lib/chan.h"
#include "lib/tlist.h"
#include "fop/fop.h"
#include "sm/sm.h"
#include "conf/confc.h"
#include "ha/entrypoint_fops.h"
Include dependency graph for rconfc.h:

Go to the source code of this file.

Data Structures

struct  rconfc_load_ctx
 
struct  rconfc_load_ctx::rconfc_load_ast
 
struct  m0_rconfc
 

Macros

#define __MOTR_CONF_RCONFC_H__
 

Typedefs

typedef void(* m0_rconfc_cb_t) (struct m0_rconfc *rconfc)
 

Enumerations

enum  m0_rconfc_state {
  M0_RCS_INIT, M0_RCS_ENTRYPOINT_WAIT, M0_RCS_ENTRYPOINT_CONSUME, M0_RCS_CREDITOR_SETUP,
  M0_RCS_GET_RLOCK, M0_RCS_VERSION_ELECT, M0_RCS_IDLE, M0_RCS_RLOCK_CONFLICT,
  M0_RCS_CONDUCTOR_DRAIN, M0_RCS_CONDUCTOR_DISCONNECT, M0_RCS_STOPPING, M0_RCS_FAILURE,
  M0_RCS_FINAL
}
 

Functions

M0_INTERNAL int m0_rconfc_init (struct m0_rconfc *rconfc, const struct m0_fid *profile, struct m0_sm_group *sm_group, struct m0_rpc_machine *rmach, m0_rconfc_cb_t expired_cb, m0_rconfc_cb_t ready_cb)
 
M0_INTERNAL int m0_rconfc_start (struct m0_rconfc *rconfc)
 
M0_INTERNAL int m0_rconfc_start_wait (struct m0_rconfc *rconfc, uint64_t timeout_ns)
 
static int m0_rconfc_start_sync (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_stop (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_stop_sync (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_fini (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_lock (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_unlock (struct m0_rconfc *rconfc)
 
M0_INTERNAL uint64_t m0_rconfc_ver_max_read (struct m0_rconfc *rconfc)
 
M0_INTERNAL void m0_rconfc_fatal_cb_set (struct m0_rconfc *rconfc, m0_rconfc_cb_t cb)
 
M0_INTERNAL int m0_rconfc_confd_endpoints (struct m0_rconfc *rconfc, const char ***eps)
 
M0_INTERNAL int m0_rconfc_rm_endpoint (struct m0_rconfc *rconfc, char **ep)
 
M0_INTERNAL void m0_rconfc_rm_fid (struct m0_rconfc *rconfc, struct m0_fid *out)
 
M0_INTERNAL bool m0_rconfc_is_preloaded (struct m0_rconfc *rconfc)
 
M0_INTERNAL bool m0_rconfc_reading_is_allowed (const struct m0_rconfc *rconfc)
 

Macro Definition Documentation

◆ __MOTR_CONF_RCONFC_H__

#define __MOTR_CONF_RCONFC_H__

Definition at line 26 of file rconfc.h.