public inbox for linux-watchdog@vger.kernel.org
 help / color / mirror / Atom feed
* Query: Best way to know if a watchdog is active (kicked)
@ 2015-08-18  5:15 Pratyush Anand
  2015-08-18  5:39 ` Guenter Roeck
  0 siblings, 1 reply; 13+ messages in thread
From: Pratyush Anand @ 2015-08-18  5:15 UTC (permalink / raw)
  To: linux-watchdog; +Cc: Dave Young, Don Zickus

Hi,

I am looking for the best way to know if a watchdog has been kicked and active.

I can see a way is to read timeout(WDIOC_GETTIMEOUT) and  timeleft(
WDIOC_GETTIMELEFT). If they do not match, it means that wdt is active.

But what if we tried to read timeleft just in time when watchdog daemon/or some
other application had kicked it. May be we read timeleft twice at the interval
of 1 sec.

Please let me know if there is any other alternative which could be a better way
to know if watchdog is active?  Or may be it would be good to implement an ioctl
WDIOC_ACTIVE?

Thanks

~Pratyush

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-21 17:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18  5:15 Query: Best way to know if a watchdog is active (kicked) Pratyush Anand
2015-08-18  5:39 ` Guenter Roeck
2015-08-18  6:57   ` Pratyush Anand
2015-08-18  9:13     ` Dave Young
2015-08-18  9:52       ` Pratyush Anand
2015-08-18 12:50     ` Guenter Roeck
2015-08-18 13:08       ` Pratyush Anand
2015-08-18 14:23         ` Guenter Roeck
2015-08-21  8:52           ` Pratyush Anand
2015-08-21 15:19             ` Guenter Roeck
2015-08-21 17:05               ` Pratyush Anand
2015-08-21 17:13                 ` Guenter Roeck
2015-08-21 17:19                   ` Pratyush Anand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox