UIO: Add write function to allow irq masking
authorHans J. Koch <hjk@linutronix.de>
Fri, 23 May 2008 11:50:14 +0000 (13:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jul 2008 04:54:55 +0000 (21:54 -0700)
commit328a14e70e7f46997cb50d4258dd93d5377f98c6
tree7cc64b122fc45af454d4dde9f561b329d9f2b0c4
parent934da4766e5f72797118f7c014efaef567a812fc
UIO: Add write function to allow irq masking

Sometimes it is necessary to enable/disable the interrupt of a UIO device
from the userspace part of the driver. With this patch, the UIO kernel driver
can implement an "irqcontrol()" function that does this. Userspace can write
an s32 value to /dev/uioX (usually 0 or 1 to turn the irq off or on). The
UIO core will then call the driver's irqcontrol function.

Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Acked-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/DocBook/uio-howto.tmpl
drivers/uio/uio.c
include/linux/uio_driver.h