Hello,
On Sat, May 24, 2008 at 12:43 AM, Hans J. Koch <hjk@linutronix.de> wrote:
We don't want to be future-proof?
With kernel UIO and userspace driver in seperate source repositories,
expect serious API drift in the longer term. I.e. the UIO interface
must be backwards and forwards proof IMHO.
*Currently*, read() and write() only deal with irq handling.
In the future you might want to add a second control. I cannot think
of what that should be now, much like it was not foreseen a write()
call was needed.
So that *if* we have a second write()able location (again, for
something I cannot foresee now), you at least check that the userspace
proper wants to enable/disable the interrupt.
AFAIK, POSIX pwrite() does not require a seek() implementation in the
driver, but will come in with a different ppos.
Idea and patch looks fine, I just wanted to bring this up so that it
is considered.
Regards,
--
Leon
--