wdog_register man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

WDOG_REGISTER(9)	     OpenBSD Kernel Manual	      WDOG_REGISTER(9)

NAME
     wdog_register - kernel watchdog interface

SYNOPSIS
     #include <sys/systm.h>

     void
     wdog_register(void *cb_arg, int (*cb)(void *cb_arg, int period));

DESCRIPTION
     The kernel watchdog interface is used by hardware watchdog drivers and
     should be used for all future drivers.

     wdog_register() is called by the hardware driver after configuring the
     hardware watchdog device.	The cb_arg argument is a pointer to the
     hardware device control structure.	 The cb argument is a pointer to a
     function supplied by the driver which sets the timeout in the hardware
     device.

     The cb_arg parameter given to cb is a pointer to the device control
     structure.	 The period parameter supplies the desired timeout value in
     seconds.  A period value of zero disables the watchdog.  Setting the
     timeout to a nonzero value after disabling the watchdog will update the
     timeout value and enable the watchdog.

CODE REFERENCES
     The framework is implemented in the file sys/kern/kern_watchdog.c.

SEE ALSO
     watchdog(4), sysctl_int(9), timeout(9)

HISTORY
     The watchdog timer framework was written by Markus Friedl
     <markus@openbsd.org> and first appeared in OpenBSD 3.3.

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net