History

watchdog: uapi: add comments for what bit masks apply to

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.

Randy Dunlap committed 5 months ago

Commit 38ecabc1 parent 4d72cac1 file · +2 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/watchdog.h+2−0
@@ -36,6 +36,7 @@ struct watchdog_info { · 35 unmodified lines
3636 #define WDIOF_UNKNOWN -1 /* Unknown flag error */
3737 #define WDIOS_UNKNOWN -1 /* Unknown status error */
3838
39+/* Bit masks for watchdog_info.options, GETSTATUS and GETBOOTSTATUS ioctls */
3940 #define WDIOF_OVERHEAT 0x0001 /* Reset due to CPU overheat */
4041 #define WDIOF_FANFAULT 0x0002 /* Fan failed */
4142 #define WDIOF_EXTERN1 0x0004 /* External relay 1 */
@@ -50,6 +51,7 @@ struct watchdog_info { · 8 unmodified lines
5051 other external alarm not a reboot */
5152 #define WDIOF_KEEPALIVEPING 0x8000 /* Keep alive ping reply */
5253
54+/* Bit masks for WDIOC_SETOPTIONS ioctl */
5355 #define WDIOS_DISABLECARD 0x0001 /* Turn off the watchdog timer */
5456 #define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */
5557 #define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */