diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-05-22 05:58:10 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-06-28 21:24:11 +0200 |
commit | 56fb9e5346b99bc6b77def79b3739097bc13ea8a (patch) | |
tree | 157e54d73ade3b65018c809a2f4109cdafeec658 /Documentation/watchdog/watchdog.txt | |
parent | [WATCHDOG] convert AT91RM9200 watchdog to platform driver (diff) | |
download | linux-56fb9e5346b99bc6b77def79b3739097bc13ea8a.tar.xz linux-56fb9e5346b99bc6b77def79b3739097bc13ea8a.zip |
[WATCHDOG] Documentation/watchdog update
Documentation/watchdog/:
Expose example and tool source files in the Documentation/ directory in
their own files instead of being buried (almost hidden) in readme/txt files.
This will make them more visible/usable to users who may need
to use them, to developers who may need to test with them, and
to janitors who would update them if they were more visible.
Also, if any of these possibly should not be in the kernel tree at
all, it will be clearer that they are here and we can discuss if
they should be removed.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'Documentation/watchdog/watchdog.txt')
-rw-r--r-- | Documentation/watchdog/watchdog.txt | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/Documentation/watchdog/watchdog.txt b/Documentation/watchdog/watchdog.txt index dffda29c8799..4b1ff69cc19a 100644 --- a/Documentation/watchdog/watchdog.txt +++ b/Documentation/watchdog/watchdog.txt @@ -65,28 +65,7 @@ The external event interfaces on the WDT boards are not currently supported. Minor numbers are however allocated for it. -Example Watchdog Driver ------------------------ - -#include <stdio.h> -#include <unistd.h> -#include <fcntl.h> - -int main(int argc, const char *argv[]) -{ - int fd=open("/dev/watchdog",O_WRONLY); - if(fd==-1) - { - perror("watchdog"); - exit(1); - } - while(1) - { - write(fd,"\0",1); - fsync(fd); - sleep(10); - } -} +Example Watchdog Driver: see Documentation/watchdog/src/watchdog-simple.c Contact Information |