Re: [PATCH v5 1/4] uio: add ioctl support

From: Vlad Zolotarov
Date: Wed Oct 07 2015 - 15:01:12 EST




On 10/07/15 21:05, Stephen Hemminger wrote:

Thinking more of a custom filesystem like configfs


Why would configfs be better?
I imagine the final files layout as follows: uioY device that would have enabled MSI-X would have a separate uio/uioY/msix/irqZ for each IRQ[Z] MSI-X vector.
And this under the same roof with uio/uioY/maps/mapK files.

We then need to implement the write() method for irqZ files so that it would accept the eventfd and bind it (or unbind if the value is negative).
We may also make read() return not only the currently bond eventfd descriptor but also the corresponding MSI-X IRQ number.


--
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/