aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2011-07-22 14:59:17 -0400
committerWim Van Sebroeck <wim@iguana.be>2011-07-28 04:01:14 -0400
commit7e192b9c4234d29bdc20ac8d0a67edf7624b4206 (patch)
treed46f8208ce67391166e8fbdcc3fe92e6ee01ea3c /Documentation/watchdog
parent017cf0805105496ab1880e236cb3e4bf156fb915 (diff)
watchdog: WatchDog Timer Driver Core - Add nowayout feature
Add support for the nowayout feature to the WatchDog Timer Driver Core framework. This feature prevents the watchdog timer from being stopped. 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')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt
index 41d552698ada..785fa0c996a4 100644
--- a/Documentation/watchdog/watchdog-kernel-api.txt
+++ b/Documentation/watchdog/watchdog-kernel-api.txt
@@ -59,8 +59,8 @@ It contains following fields:
59 watchdog_get_drvdata routines. 59 watchdog_get_drvdata routines.
60* status: this field contains a number of status bits that give extra 60* status: this field contains a number of status bits that give extra
61 information about the status of the device (Like: is the watchdog timer 61 information about the status of the device (Like: is the watchdog timer
62 running/active, is the device opened via the /dev/watchdog interface or not, 62 running/active, is the nowayout bit set, is the device opened via
63 ...). 63 the /dev/watchdog interface or not, ...).
64 64
65The list of watchdog operations is defined as: 65The list of watchdog operations is defined as:
66 66
@@ -130,10 +130,13 @@ bit-operations. The status bits that are defined are:
130* WDOG_ALLOW_RELEASE: this bit stores whether or not the magic close character 130* WDOG_ALLOW_RELEASE: this bit stores whether or not the magic close character
131 has been sent (so that we can support the magic close feature). 131 has been sent (so that we can support the magic close feature).
132 (This bit should only be used by the WatchDog Timer Driver Core). 132 (This bit should only be used by the WatchDog Timer Driver Core).
133* WDOG_NO_WAY_OUT: this bit stores the nowayout setting for the watchdog.
134 If this bit is set then the watchdog timer will not be able to stop.
133 135
134Note: The WatchDog Timer Driver Core supports the magic close feature. To use 136Note: The WatchDog Timer Driver Core supports the magic close feature and
135the magic close feature you must set the WDIOF_MAGICCLOSE bit in the options 137the nowayout feature. To use the magic close feature you must set the
136field of the watchdog's info structure. 138WDIOF_MAGICCLOSE bit in the options field of the watchdog's info structure.
139The nowayout feature will overrule the magic close feature.
137 140
138To get or set driver specific data the following two helper functions should be 141To get or set driver specific data the following two helper functions should be
139used: 142used: