On Mon, Oct 11, 2021 at 6:11 PM Dmitry Kozlyuk <dmitry.kozl...@gmail.com> wrote: > > Add IOCTL for interrupt event delivery to user space. > > * IOCTL_NETUIO_INTR_CONTROL: > Enable/disable the delivery of interrupt events. > This is a software switch to ignore received interrupts. > Programming the HW to stop issuing interrupts is up to the user. > > * IOCTL_NETUIO_INTR_QUERY: > Wait for an interrupt event on the specified vector. > More than one outstanding request may be issued for the same vector. > This can be used to balance the interrupt servicing if the requests > are issued using distinct handles waited by different threads. > If N identical requests are issued using the same handle, > one request will be completed each time the interrupt is triggered. > > MSI-X support is advertised for the driver, but the implementation > works with any type of interrupts assigned by the kernel. > > Signed-off-by: Dmitry Kozlyuk <dmitry.kozl...@gmail.com> > ---
Hi Dmitry, Is there a corresponding userspace code so I can give it a try? s.t like sending IOCTL_NETUIO_INTR_CONTROL to enable a device's interrupt, and blocked at IOCTL_NETUIO_INTR_QUERY for incoming request in the intr_queue. Thanks William