Re: [PATCH] uio: add ioctl callback

From: Greg KH
Date: Wed Nov 12 2008 - 11:18:49 EST


On Wed, Nov 12, 2008 at 04:59:56PM +0100, Neil Armstrong wrote:
> Hi Hans,
>
> We need an ioctl callback because we need to query some values only
> available when the irq handler is running.
> For example, we have 3 types of reasons why the irq is triggered and
> these bits are no more available when the irq is cleared.
>
> The cleanest way to have this very specific information is to have a
> dirty old ioctl returning this data.

Do you also have a patch for your UIO driver that implements this
functionality?

I really don't think we want to add an ioctl callback, perhaps you could
just use a sysfs file for this?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/