Query: Best way to know if a watchdog is active (kicked)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux