Cc: Wim Van Sebroeck <wim@...>, Christoph Hellwig <hch@...>, Jonathan Corbet <corbet@...>, Linus Torvalds <torvalds@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, Peter Zijlstra <a.p.zijlstra@...>, Thomas Gleixner <tglx@...>, Alexander Viro <viro@...>, <linux-kernel@...>
Very nice code!
Are you planning this as a transitional method for
converting drivers, or are you aware of any driver that
actually needs its own ioctl method?
All the ioctl numbers are compatible, so it would be good
to register the watchdog ioctl function as compat_ioctl
as well. Once all drivers are using the common abstraction,
we can also kill their COMPATIBLE_IOCTL() entries in
fs/compat_ioctl.c.
There are a few watchdog drivers living outside of drivers/watchdog/,
I could find:
* arch/um/drivers/harddog_kern.c
* drivers/char/ipmi/ipmi_watchdog.c
* drivers/rtc/rtc-m41t80.c
* drivers/s390/char/vmwatchdog.c
* drivers/sbus/char/cpwatchdog.c
* drivers/sbus/char/riowatchdog.c
In order to conver those to the new model, you either have to
move them to the right place, or move the new declarations to
include/linux/watchdog.h.
Arnd <><
--