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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -36,6 +36,7 @@ struct watchdog_info { · 35 unmodified lines | |||
| 36 | #define WDIOF_UNKNOWN -1 /* Unknown flag error */ | 36 | #define WDIOF_UNKNOWN -1 /* Unknown flag error */ |
| 37 | #define WDIOS_UNKNOWN -1 /* Unknown status error */ | 37 | #define WDIOS_UNKNOWN -1 /* Unknown status error */ |
| 38 | 38 | ||
| 39 | /* Bit masks for watchdog_info.options, GETSTATUS and GETBOOTSTATUS ioctls */ | ||
| 39 | #define WDIOF_OVERHEAT 0x0001 /* Reset due to CPU overheat */ | 40 | #define WDIOF_OVERHEAT 0x0001 /* Reset due to CPU overheat */ |
| 40 | #define WDIOF_FANFAULT 0x0002 /* Fan failed */ | 41 | #define WDIOF_FANFAULT 0x0002 /* Fan failed */ |
| 41 | #define WDIOF_EXTERN1 0x0004 /* External relay 1 */ | 42 | #define WDIOF_EXTERN1 0x0004 /* External relay 1 */ |
| @@ -50,6 +51,7 @@ struct watchdog_info { · 8 unmodified lines | |||
| 50 | other external alarm not a reboot */ | 51 | other external alarm not a reboot */ |
| 51 | #define WDIOF_KEEPALIVEPING 0x8000 /* Keep alive ping reply */ | 52 | #define WDIOF_KEEPALIVEPING 0x8000 /* Keep alive ping reply */ |
| 52 | 53 | ||
| 54 | /* Bit masks for WDIOC_SETOPTIONS ioctl */ | ||
| 53 | #define WDIOS_DISABLECARD 0x0001 /* Turn off the watchdog timer */ | 55 | #define WDIOS_DISABLECARD 0x0001 /* Turn off the watchdog timer */ |
| 54 | #define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */ | 56 | #define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */ |
| 55 | #define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */ | 57 | #define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */ |