diff options
author | James Hogan <james.hogan@imgtec.com> | 2010-04-05 12:31:29 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2010-04-06 16:23:55 +0200 |
commit | dfc333834cb86805485920dc77ee0f2fbb484462 (patch) | |
tree | fe89d56964d20d1584570018896f7131d2f4cea7 /Documentation/watchdog/watchdog-api.txt | |
parent | [WATCHDOG] doc: watchdog simple example: don't fail on fsync() (diff) | |
download | linux-dfc333834cb86805485920dc77ee0f2fbb484462.tar.xz linux-dfc333834cb86805485920dc77ee0f2fbb484462.zip |
[WATCHDOG] doc: Fix use of WDIOC_SETOPTIONS ioctl.
In the watchdog-test program and watchdog-api.txt, pass the values to
the WDIOC_SETOPTIONS ioctl as a pointer to an integer containing the
values intead of directly in the third ioctl argument. The actual
watchdog drivers in drivers/watchdog don't read the options directly
from the argument but use get_user and copy_from_user.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | Documentation/watchdog/watchdog-api.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/watchdog/watchdog-api.txt b/Documentation/watchdog/watchdog-api.txt index 4cc4ba9d7150..eb7132ed8bbc 100644 --- a/Documentation/watchdog/watchdog-api.txt +++ b/Documentation/watchdog/watchdog-api.txt @@ -222,11 +222,10 @@ returned value is the temperature in degrees fahrenheit. ioctl(fd, WDIOC_GETTEMP, &temperature); Finally the SETOPTIONS ioctl can be used to control some aspects of -the cards operation; right now the pcwd driver is the only one -supporting this ioctl. +the cards operation. int options = 0; - ioctl(fd, WDIOC_SETOPTIONS, options); + ioctl(fd, WDIOC_SETOPTIONS, &options); The following options are available: |