Lines Matching +full:watchdog +full:- +full:enable
1 .\" Copyright (c) 2004 Poul-Henning Kamp <phk@FreeBSD.org>
30 .Nm watchdog
31 .Nd "hardware and software watchdog"
47 .Bl -tag -width "WDIOC_CONTROL int "
49 Pat the watchdog.
51 Enable, disable, or reset the watchdog.
59 of the timeout period for the watchdog.
65 .Xr watchdog 9
68 means that at least one watchdog is armed.
69 By default, this will be a hardware watchdog if one is present, but if
70 no hardware watchdog is able to process the request, a default software
71 watchdog is enabled.
74 .Xr watchdog 9
76 be explicitly re-enabled.
84 If disarming the watchdog(s) failed an error is returned.
85 The watchdog might
93 Another way to pat the watchdog is with the
105 .Bl -tag -width "WDIOC_GETPRETTIMEOUT sbintime_t"
113 get the pre-timeout
115 set the pre-timeout
117 Set the action when a pre-timeout occurs (see
121 Use an internal software watchdog instead of hardware.
122 There is also an external software watchdog, which is used by default
123 if no hardware watchdog was attached.
128 The actions that may be specified for the pre-timeout or the internal software
129 watchdog are listed here.
131 .Bl -tag -width WD_SOFT_PRINT
145 returns zero on success and non-zero on failure.
146 .Bl -tag -width Er
148 No watchdog present in the kernel or
152 Watchdog could not be disabled (timeout value of 0).
159 operations return zero on success and non-zero on failure.
161 .Bd -literal -offset indent
163 #include <sys/watchdog.h>
166 int wdfd = -1;
172 if (wdfd == -1)
178 if (ioctl(wdfd, WDIOCPATPAT, &timeout) == -1)
189 Enables a watchdog to recover from a potentially freezing piece of code.
193 in your kernel config forces a software watchdog in the kernel
194 to be configured even if a hardware watchdog is configured,
199 .Xr watchdog 9
206 .An -nosplit
210 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org .
211 The software watchdog code and this manual page were written by