]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
watchdog: uapi: add comments for what bit masks apply to
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 29 May 2026 21:20:22 +0000 (14:20 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 8 Jun 2026 18:53:18 +0000 (11:53 -0700)
Add comments similar to those in include/linux/watchdog.h
so that the reader/user doesn't have to dig into the API documentation
files for this.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
include/uapi/linux/watchdog.h

index b15cde5c9054d754508b2e784c8c6d3c99ef546e..fc73c17ee182da3cfa87ea49c2d614704b4c41e0 100644 (file)
@@ -36,6 +36,7 @@ struct watchdog_info {
 #define        WDIOF_UNKNOWN           -1      /* Unknown flag error */
 #define        WDIOS_UNKNOWN           -1      /* Unknown status error */
 
+/* Bit masks for watchdog_info.options, GETSTATUS and GETBOOTSTATUS ioctls */
 #define        WDIOF_OVERHEAT          0x0001  /* Reset due to CPU overheat */
 #define        WDIOF_FANFAULT          0x0002  /* Fan failed */
 #define        WDIOF_EXTERN1           0x0004  /* External relay 1 */
@@ -50,6 +51,7 @@ struct watchdog_info {
                                           other external alarm not a reboot */
 #define        WDIOF_KEEPALIVEPING     0x8000  /* Keep alive ping reply */
 
+/* Bit masks for WDIOC_SETOPTIONS ioctl */
 #define        WDIOS_DISABLECARD       0x0001  /* Turn off the watchdog timer */
 #define        WDIOS_ENABLECARD        0x0002  /* Turn on the watchdog timer */
 #define        WDIOS_TEMPPANIC         0x0004  /* Kernel panic on temperature trip */