The change from Wolfram based on Robin's work adds two new watchdog ioctls WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT, both interfaces are already described in Documentation/watchdog/watchdog-api.txt Along with UAPI update a new internal interface for watchdog drivers set_pretimeout() is introduced, it allows to update the state of a controller. The handling of a pretimeout event is a task delegated to watchdog drivers. My contribution to the change is negligible, apart of review and testing: * added visibility of a pretimeout sysfs attribute based on set WDIOF_PRETIMEOUT watchdog option, * on WDIOC_SETPRETIMEOUT modify watchdog device pretimeout value in place, this should save some lines of code on the drivers' side. Wolfram's patch "watchdog: softdog: implement pretimeout support" potentially can be added to the series with a minor modification: - static struct watchdog_device softdog_dev; ..... - watchdog_notify_pretimeout(&softdog_dev); + panic("watchdog pretimeout event"); but I'm hesitating to do it. The change adds all necessary bits to proceed with a watchdog pretimeout framework devlopment. Wolfram Sang (2): watchdog: add pretimeout support to the core fs: compat_ioctl: add pretimeout functions for watchdogs Documentation/watchdog/watchdog-kernel-api.txt | 20 +++++++++ drivers/watchdog/watchdog_dev.c | 57 +++++++++++++++++++++++++- fs/compat_ioctl.c | 2 + include/linux/watchdog.h | 11 +++++ 4 files changed, 88 insertions(+), 2 deletions(-) -- 2.8.1 -- 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