#include <config.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <sys/reboot.h>
#include <corosync/corotypes.h>
#include <corosync/corodefs.h>
#include <corosync/coroapi.h>
#include <qb/qblist.h>
#include <corosync/logsys.h>
#include <corosync/icmap.h>
#include "fsm.h"
#include "service.h"
Go to the source code of this file.
◆ WD_DEFAULT_TIMEOUT_MS
Definition at line 84 of file wd.c.
◆ WD_DEFAULT_TIMEOUT_SEC
#define WD_DEFAULT_TIMEOUT_SEC 6 |
Definition at line 83 of file wd.c.
◆ WD_MAX_TIMEOUT_MS
Definition at line 86 of file wd.c.
◆ WD_MIN_TIMEOUT_MS
#define WD_MIN_TIMEOUT_MS 500 |
Definition at line 85 of file wd.c.
◆ wd_resource_event
Enumerator |
---|
WD_E_FAILURE | |
WD_E_CONFIG_CHANGED | |
Definition at line 126 of file wd.c.
◆ wd_resource_state
Enumerator |
---|
WD_S_RUNNING | |
WD_S_FAILED | |
WD_S_STOPPED | |
Definition at line 120 of file wd.c.
◆ wd_resource_state_t
Enumerator |
---|
WD_RESOURCE_GOOD | |
WD_RESOURCE_FAILED | |
WD_RESOURCE_STATE_UNKNOWN | |
WD_RESOURCE_NOT_MONITORED | |
Definition at line 54 of file wd.c.
◆ LOGSYS_DECLARE_SUBSYS()
LOGSYS_DECLARE_SUBSYS |
( |
"WD" |
| ) |
|
◆ wd_get_service_engine_ver0()
◆ wd_config_changed_str
const char* wd_config_changed_str = "config_changed" |
Definition at line 135 of file wd.c.
◆ wd_failed_str
const char* wd_failed_str = "failed" |
Definition at line 132 of file wd.c.
◆ wd_failure_str
const char* wd_failure_str = "failure" |
Definition at line 133 of file wd.c.
◆ wd_fsm_table
Initial value:
Definition at line 137 of file wd.c.
◆ wd_running_str
const char* wd_running_str = "running" |
Definition at line 131 of file wd.c.
◆ wd_service_engine
Initial value:= {
.name = "corosync watchdog service",
.priority = 1,
.private_data_size = 0,
.lib_init_fn = NULL,
.lib_exit_fn = NULL,
.lib_engine = NULL,
.lib_engine_count = 0,
.exec_engine = NULL,
.exec_engine_count = 0,
.confchg_fn = NULL,
.exec_init_fn = wd_exec_init_fn,
.exec_exit_fn = wd_exec_exit_fn,
.exec_dump_fn = NULL
}
@ CS_LIB_FLOW_CONTROL_NOT_REQUIRED
Definition at line 94 of file wd.c.
Referenced by wd_get_service_engine_ver0().
◆ wd_stopped_str
const char* wd_stopped_str = "stopped" |
Definition at line 134 of file wd.c.