Files
linux/Documentation
Pratyush Anand 33b711269a watchdog: Read device status through sysfs attributes
This patch adds following attributes to watchdog device's sysfs interface
to read its different status.

* state - reads whether device is active or not
* identity - reads Watchdog device's identity string.
* timeout - reads current timeout.
* timeleft - reads timeleft before watchdog generates a reset
* bootstatus - reads status of the watchdog device at boot
* status - reads watchdog device's  internal status bits
* nowayout - reads whether nowayout feature was set or not

Testing with iTCO_wdt:
 # cd /sys/class/watchdog/watchdog1/
 # ls
bootstatus  dev  device  identity  nowayout  power  state
subsystem  timeleft  timeout  uevent
 # cat identity
iTCO_wdt
 # cat timeout
30
 # cat state
inactive
 # echo > /dev/watchdog1
 # cat timeleft
26
 # cat state
active
 # cat bootstatus
0
 # cat nowayout
0

Signed-off-by: Pratyush Anand <panand@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2015-12-27 16:55:57 +01:00
..
2015-09-24 15:39:42 -06:00
2014-02-28 15:12:08 -08:00
2014-02-10 16:01:40 -08:00
2015-08-28 22:59:36 -04:00
2015-10-27 18:55:31 -07:00
2015-06-08 16:43:09 -06:00
2014-12-10 17:41:10 -08:00
2015-10-26 16:00:09 +01:00
2015-06-08 23:15:45 +02:00
2015-07-14 12:35:42 -06:00
2015-11-06 17:50:42 -08:00
2015-02-27 11:44:24 -08:00
2014-05-05 15:32:05 +02:00
2013-12-02 14:48:28 +01:00
2014-12-08 09:07:11 -05:00
2015-06-23 06:49:44 -06:00
2014-05-05 15:32:05 +02:00
2014-09-23 23:44:16 -07:00