Motr  M0
ha.h File Reference
#include "lib/types.h"
#include "xcode/xcode_attr.h"
#include "conf/schema.h"
Include dependency graph for ha.h:

Go to the source code of this file.

Data Structures

struct  m0_conf_ha_process
 
struct  m0_conf_ha_service
 

Macros

#define __MOTR_CONF_HA_H__
 

Enumerations

enum  m0_conf_ha_process_event {
  M0_CONF_HA_PROCESS_STARTING, M0_CONF_HA_PROCESS_STARTED, M0_CONF_HA_PROCESS_STOPPING, M0_CONF_HA_PROCESS_STOPPED,
  M0_CONF_HA_PROCESS_DTM_RECOVERED
}
 
enum  m0_conf_ha_process_type { M0_CONF_HA_PROCESS_OTHER, M0_CONF_HA_PROCESS_KERNEL, M0_CONF_HA_PROCESS_M0MKFS, M0_CONF_HA_PROCESS_M0D }
 
enum  m0_conf_ha_service_event {
  M0_CONF_HA_SERVICE_STARTING, M0_CONF_HA_SERVICE_STARTED, M0_CONF_HA_SERVICE_STOPPING, M0_CONF_HA_SERVICE_STOPPED,
  M0_CONF_HA_SERVICE_FAILED
}
 

Functions

struct m0_conf_ha_process M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL void m0_conf_ha_process_event_post (struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *process_fid, uint64_t pid, enum m0_conf_ha_process_event event, enum m0_conf_ha_process_type type)
 
M0_INTERNAL void m0_conf_ha_service_event_post (struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *source_process_fid, const struct m0_fid *source_service_fid, const struct m0_fid *service_fid, uint64_t pid, enum m0_conf_ha_service_event event, enum m0_conf_service_type service_type)
 

Variables

uint64_t chp_event
 
uint64_t chp_type
 
uint64_t chp_pid
 
enum m0_conf_ha_service_event M0_XCA_DOMAIN
 
uint64_t chs_event
 
uint64_t chs_type
 
uint64_t chs_pid
 

Macro Definition Documentation

◆ __MOTR_CONF_HA_H__

#define __MOTR_CONF_HA_H__

Definition at line 26 of file ha.h.

Variable Documentation

◆ chp_event

uint64_t chp_event
See also
m0_conf_ha_process_event for values

Definition at line 82 of file ha.h.

◆ chp_pid

uint64_t chp_pid

PID of the current process. 0 if it's a kernel mode "process" (m0t1fs mount, for example).

See also
m0_conf_ha_service:chs_pid, m0_process().

Definition at line 90 of file ha.h.

◆ chp_type

uint64_t chp_type
See also
m0_conf_ha_process_type for values

Definition at line 84 of file ha.h.

◆ chs_event

uint64_t chs_event
See also
m0_conf_ha_service_event for values

Definition at line 82 of file ha.h.

◆ chs_pid

uint64_t chs_pid

PID of the current process. 0 if it's a kernel mode "process" (m0t1fs mount, for example).

See also
m0_conf_ha_process:chp_pid, m0_process().

Definition at line 90 of file ha.h.

◆ chs_type

uint64_t chs_type
See also
m0_conf_service_type for values

Definition at line 84 of file ha.h.