~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/watchdog/pcwd-watchdog.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 ===================================
  2 Berkshire Products PC Watchdog Card
  3 ===================================
  4 
  5 Last reviewed: 10/05/2007
  6 
  7 Support for ISA Cards  Revision A and C
  8 =======================================
  9 
 10 Documentation and Driver by Ken Hollis <kenji@bitgate.com>
 11 
 12  The PC Watchdog is a card that offers the same type of functionality that
 13  the WDT card does, only it doesn't require an IRQ to run.  Furthermore,
 14  the Revision C card allows you to monitor any IO Port to automatically
 15  trigger the card into being reset.  This way you can make the card
 16  monitor hard drive status, or anything else you need.
 17 
 18  The Watchdog Driver has one basic role: to talk to the card and send
 19  signals to it so it doesn't reset your computer ... at least during
 20  normal operation.
 21 
 22  The Watchdog Driver will automatically find your watchdog card, and will
 23  attach a running driver for use with that card.  After the watchdog
 24  drivers have initialized, you can then talk to the card using a PC
 25  Watchdog program.
 26 
 27  I suggest putting a "watchdog -d" before the beginning of an fsck, and
 28  a "watchdog -e -t 1" immediately after the end of an fsck.  (Remember
 29  to run the program with an "&" to run it in the background!)
 30 
 31  If you want to write a program to be compatible with the PC Watchdog
 32  driver, simply use of modify the watchdog test program:
 33  tools/testing/selftests/watchdog/watchdog-test.c
 34 
 35 
 36  Other IOCTL functions include:
 37 
 38         WDIOC_GETSUPPORT
 39                 This returns the support of the card itself.  This
 40                 returns in structure "PCWDS" which returns:
 41 
 42                         options = WDIOS_TEMPPANIC
 43                                   (This card supports temperature)
 44                         firmware_version = xxxx
 45                                   (Firmware version of the card)
 46 
 47         WDIOC_GETSTATUS
 48                 This returns the status of the card, with the bits of
 49                 WDIOF_* bitwise-anded into the value.  (The comments
 50                 are in include/uapi/linux/watchdog.h)
 51 
 52         WDIOC_GETBOOTSTATUS
 53                 This returns the status of the card that was reported
 54                 at bootup.
 55 
 56         WDIOC_GETTEMP
 57                 This returns the temperature of the card.  (You can also
 58                 read /dev/watchdog, which gives a temperature update
 59                 every second.)
 60 
 61         WDIOC_SETOPTIONS
 62                 This lets you set the options of the card.  You can either
 63                 enable or disable the card this way.
 64 
 65         WDIOC_KEEPALIVE
 66                 This pings the card to tell it not to reset your computer.
 67 
 68  And that's all she wrote!
 69 
 70  -- Ken Hollis
 71     (kenji@bitgate.com)

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php