aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog/watchdog-kernel-api.txt
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2011-07-22 14:57:55 -0400
committerWim Van Sebroeck <wim@iguana.be>2011-07-28 04:01:09 -0400
commit234445b4e4542f3e0f216459245ab369a18adcf2 (patch)
treeed670bb2aa3eae41f00e5217fb786eaa9fbe6cb3 /Documentation/watchdog/watchdog-kernel-api.txt
parentc2dc00e494cc476551b9beeb883910391ff59737 (diff)
watchdog: WatchDog Timer Driver Core - Add WDIOC_SETOPTIONS ioctl
This part add's the WDIOC_SETOPTIONS ioctl functionality to the WatchDog Timer Driver Core framework. Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'Documentation/watchdog/watchdog-kernel-api.txt')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt
index abbcf2ce8f62..429f81bf0cf7 100644
--- a/Documentation/watchdog/watchdog-kernel-api.txt
+++ b/Documentation/watchdog/watchdog-kernel-api.txt
@@ -56,8 +56,9 @@ It contains following fields:
56 This data should only be accessed via the watchdog_set_drvadata and 56 This data should only be accessed via the watchdog_set_drvadata and
57 watchdog_get_drvdata routines. 57 watchdog_get_drvdata routines.
58* status: this field contains a number of status bits that give extra 58* status: this field contains a number of status bits that give extra
59 information about the status of the device (Like: is the device opened via 59 information about the status of the device (Like: is the watchdog timer
60 the /dev/watchdog interface or not, ...). 60 running/active, is the device opened via the /dev/watchdog interface or not,
61 ...).
61 62
62The list of watchdog operations is defined as: 63The list of watchdog operations is defined as:
63 64
@@ -109,6 +110,10 @@ they are supported. These optional routines/operations are:
109 110
110The status bits should (preferably) be set with the set_bit and clear_bit alike 111The status bits should (preferably) be set with the set_bit and clear_bit alike
111bit-operations. The status bits that are defined are: 112bit-operations. The status bits that are defined are:
113* WDOG_ACTIVE: this status bit indicates whether or not a watchdog timer device
114 is active or not. When the watchdog is active after booting, then you should
115 set this status bit (Note: when you register the watchdog timer device with
116 this bit set, then opening /dev/watchdog will skip the start operation)
112* WDOG_DEV_OPEN: this status bit shows whether or not the watchdog device 117* WDOG_DEV_OPEN: this status bit shows whether or not the watchdog device
113 was opened via /dev/watchdog. 118 was opened via /dev/watchdog.
114 (This bit should only be used by the WatchDog Timer Driver Core). 119 (This bit should only be used by the WatchDog Timer Driver Core).