*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: watchdog | Section: 9 | Source: FreeBSD | File: watchdog.9.gz
WATCHDOG(9) FreeBSD Kernel Developer's Manual WATCHDOG(9) NAME watchdog - software and hardware watchdog facility SYNOPSIS #include <sys/watchdog.h> void watchdog_fn(void *private, u_int cmd, int *error); EVENTHANDLER_REGISTER(watchdog_list, watchdog_fn, private, 0); EVENTHANDLER_DEREGISTER(watchdog_list, eventhandler_tag); DESCRIPTION To implement a watchdog in software or hardware, only a single function needs to be written and registered on the global watchdog_list. The function must examine the cmd argument and act on it as follows: If cmd is zero, the watchdog must be disabled and the error argument left untouched. If the watchdog cannot be disabled, the error argument must be set to EOPNOTSUPP. Else the watchdog should be reset and configured to a timeout of (1 << (cmd & WD_INTERVAL)) nanoseconds or larger and the error argument be set to zero to signal arming of a watchdog. If the watchdog cannot be configured to the proposed timeout, it must be disabled and the error argument left as is (to avoid hiding the arming of another watchdog). There is no specification of what the watchdog should do when it times out, but a hardware reset or similar "drastic but certain" behaviour is recommended. SEE ALSO watchdog(4) AUTHORS The watchdog facility and this manual page was written Poul-Henning Kamp <[email protected]>. FreeBSD 14.1-RELEASE-p8 February 28, 2004 FreeBSD 14.1-RELEASE-p8

Navigation Options