diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2006-05-21 06:48:44 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-06-20 13:00:30 -0400 |
commit | 58b519f3e5e491d5a3e320dc525f58ac439bdde4 (patch) | |
tree | efff3a0bd308effbbedce1a50fbb40d71e5b5d96 /Documentation | |
parent | e05b59fe7927bc648ac3af3d59dc64a7ee6b22e2 (diff) |
[WATCHDOG] add WDIOC_GETTIMELEFT ioctl
Some watchdog drivers have the ability to report the remaining time
before the system will reboot. With the WDIOC_GETTIMELEFT ioctl
you can now read the time left before the watchdog would reboot
your system.
The following drivers support this new IOCTL:
i8xx_tco.c, pcwd_pci.c and pcwd_usb.c .
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/watchdog/watchdog-api.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/watchdog/watchdog-api.txt b/Documentation/watchdog/watchdog-api.txt index 7dc2c1c6f77..d738ec25eaa 100644 --- a/Documentation/watchdog/watchdog-api.txt +++ b/Documentation/watchdog/watchdog-api.txt | |||
@@ -134,6 +134,15 @@ There is also a get function for getting the pretimeout: | |||
134 | 134 | ||
135 | Not all watchdog drivers will support a pretimeout. | 135 | Not all watchdog drivers will support a pretimeout. |
136 | 136 | ||
137 | Get the number of seconds before reboot: | ||
138 | |||
139 | Some watchdog drivers have the ability to report the remaining time | ||
140 | before the system will reboot. The WDIOC_GETTIMELEFT is the ioctl | ||
141 | that returns the number of seconds before reboot. | ||
142 | |||
143 | ioctl(fd, WDIOC_GETTIMELEFT, &timeleft); | ||
144 | printf("The timeout was is %d seconds\n", timeleft); | ||
145 | |||
137 | Environmental monitoring: | 146 | Environmental monitoring: |
138 | 147 | ||
139 | All watchdog drivers are required return more information about the system, | 148 | All watchdog drivers are required return more information about the system, |