aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog/watchdog-kernel-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/watchdog/watchdog-kernel-api.txt')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt
index 785fa0c996a4..829955bd245e 100644
--- a/Documentation/watchdog/watchdog-kernel-api.txt
+++ b/Documentation/watchdog/watchdog-kernel-api.txt
@@ -73,6 +73,7 @@ struct watchdog_ops {
73 int (*ping)(struct watchdog_device *); 73 int (*ping)(struct watchdog_device *);
74 unsigned int (*status)(struct watchdog_device *); 74 unsigned int (*status)(struct watchdog_device *);
75 int (*set_timeout)(struct watchdog_device *, unsigned int); 75 int (*set_timeout)(struct watchdog_device *, unsigned int);
76 long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
76}; 77};
77 78
78It is important that you first define the module owner of the watchdog timer 79It is important that you first define the module owner of the watchdog timer
@@ -117,6 +118,10 @@ they are supported. These optional routines/operations are:
117 to re-program the watchdog timer device. 118 to re-program the watchdog timer device.
118 (Note: the WDIOF_SETTIMEOUT needs to be set in the options field of the 119 (Note: the WDIOF_SETTIMEOUT needs to be set in the options field of the
119 watchdog's info structure). 120 watchdog's info structure).
121* ioctl: if this routine is present then it will be called first before we do
122 our own internal ioctl call handling. This routine should return -ENOIOCTLCMD
123 if a command is not supported. The parameters that are passed to the ioctl
124 call are: watchdog_device, cmd and arg.
120 125
121The status bits should (preferably) be set with the set_bit and clear_bit alike 126The status bits should (preferably) be set with the set_bit and clear_bit alike
122bit-operations. The status bits that are defined are: 127bit-operations. The status bits that are defined are: