78 int wdog_reload (
void);
80 int wdog_enable (
int enable);
81 int wdog_status (
int *status);
83 int wdog_failed (wdog_code_t code,
int pid,
char *label,
unsigned int timeout);
85 int wdog_reset (
int pid,
char *label);
86 int wdog_reset_timeout (
int pid,
char *label,
unsigned int timeout);
183 int wdog_subscribe(
char *label,
unsigned int timeout,
unsigned int *next_ack);
210 int wdog_kick(
int id,
unsigned int timeout,
unsigned int ack,
unsigned int *next_ack);
unsigned int enabled
Unused, kept for compat.
Definition: wdog.h:66
wdog_code_t
Reset reason codes.
Definition: wdog.h:46
int wdog_kick(int id, unsigned int timeout, unsigned int ack, unsigned int *next_ack)
Kick the watchdog with a custom timeout (old API)
unsigned int counter
Global reset counter, not per-reason.
Definition: wdog.h:63
Likely, WDT timed out.
Definition: wdog.h:54
Supervised process.
Definition: wdog.h:49
filenr pluing
Definition: wdog.h:55
int wdog_reset_reason_raw(wdog_reason_t *reason)
Get reset reason (raw).
Unused?
Definition: wdog.h:48
Supervised process.
Definition: wdog.h:51
int wdog_reset_reason(wdog_reason_t *reason)
Get reset reason.
int wdog_set_debug(int enable)
Toggle debug messages in daemon.
int wdog_reset_counter(unsigned int *counter)
Get system reset counter (updated on every watchdog reset, incl.
Operator requested system reboot.
Definition: wdog.h:53
int wdog_reset_reason_clr(void)
Clear reset reason, including reset counter.
loadavg plugin
Definition: wdog.h:57
int wdog_get_debug(int *status)
Get daemon debug status.
int wdog_subscribe(char *label, unsigned int timeout, unsigned int *next_ack)
Start supervising a subscriber.
Supervised process.
Definition: wdog.h:50
int wdog_kick2(int id, unsigned int *ack)
Kick the watchdog.
wdog_code_t code
Reset reason code, use wdog_reset_reason_str()
Definition: wdog.h:65
int wdog_extend_kick(int id, unsigned int timeout, unsigned int *ack)
Kick the watchdog with a custom timeout.
Supervised process.
Definition: wdog.h:52
int wdog_set_loglevel(char *level)
Change daemon log level.
char * wdog_get_loglevel(void)
Get daemon log level.
unsigned int wid
Watchdog ID of process causing reset.
Definition: wdog.h:64
int wdog_unsubscribe(int id, unsigned int ack)
Stop supervising a subscriber.
Reset reason data.
Definition: wdog.h:61
After reset/power-on.
Definition: wdog.h:47
meminfo plugin
Definition: wdog.h:56
char * wdog_reset_reason_str(wdog_reason_t *reason)
Translates wdog_code_t to human-readable string.