[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080524044354.GA8129@suse.de>
Date: Fri, 23 May 2008 21:43:54 -0700
From: Greg KH <gregkh@...e.de>
To: "Hans J. Koch" <hjk@...utronix.de>
Cc: Uwe Kleine-K??nig <Uwe.Kleine-Koenig@...i.com>,
linux-kernel@...r.kernel.org,
Jan Altenberg <jan.altenberg@...utronix.de>,
Thomas Gleixner <tglx@...utronix.de>,
Magnus Damm <magnus.damm@...il.com>
Subject: Re: [PATCH 1/1] UIO: Add a write() function to enable/disable
interrupts
On Fri, May 23, 2008 at 01:55:57PM +0200, Hans J. Koch wrote:
> 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.
Why not just a new sysfs file for the uio device, irq_enabled, or
something like that? That way our main read/write path is left alone.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists