]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: WatchDog Timer Driver Core - Add ioctl call
authorWim Van Sebroeck <wim@iguana.be>
Fri, 22 Jul 2011 18:59:49 +0000 (18:59 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Jul 2011 08:01:16 +0000 (08:01 +0000)
commit11e69920a6e5dc4144313f8b7bf061d4141cd600
tree8f5650e80988752d144c4575ae4d2b4e846e2aa5
parent6f5f4df7fcb54eca30ebf162e41f3878fa332dae
watchdog: WatchDog Timer Driver Core - Add ioctl call

Add support for extra ioctl calls by adding a
ioctl watchdog operation. This operation will be
called before we do our own handling of ioctl
commands. This way we can override the internal
ioctl command handling and we can also add
extra ioctl commands. The ioctl watchdog operation
should return the appropriate error codes or
-ENOIOCTLCMD if the ioctl command should be handled
through the internal ioctl handling of the framework.

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Documentation/watchdog/watchdog-kernel-api.txt
drivers/watchdog/watchdog_dev.c
include/linux/watchdog.h