diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-19 16:41:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-19 16:41:59 -0700 |
commit | b0c51b7d650d5109c8e71e19d5e7ce9b71af7dff (patch) | |
tree | dcbb5da853601a2e80829402adbd03435469eb10 /Documentation | |
parent | ee433530d96a7b0af24ab616e5b51f1d89f9ae38 (diff) | |
parent | 655516c80ccb3ab2ba2d3063715889b00552a8b3 (diff) | |
download | linux-b0c51b7d650d5109c8e71e19d5e7ce9b71af7dff.tar.gz linux-b0c51b7d650d5109c8e71e19d5e7ce9b71af7dff.tar.bz2 linux-b0c51b7d650d5109c8e71e19d5e7ce9b71af7dff.zip |
Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
* master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
[WATCHDOG] s3c2410_wdt.c stop watchdog after boot
[WATCHDOG] i8xx_tco.c - remove support for ICH6 + ICH7
[WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon
[WATCHDOG] sc1200wdt.c printk fix
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/watchdog/watchdog-api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/watchdog/watchdog-api.txt b/Documentation/watchdog/watchdog-api.txt index c5beb548cfc4..21ed51173662 100644 --- a/Documentation/watchdog/watchdog-api.txt +++ b/Documentation/watchdog/watchdog-api.txt @@ -36,6 +36,9 @@ timeout or margin. The simplest way to ping the watchdog is to write some data to the device. So a very simple watchdog daemon would look like this: +#include <stdlib.h> +#include <fcntl.h> + int main(int argc, const char *argv[]) { int fd=open("/dev/watchdog",O_WRONLY); if (fd==-1) { |