VFIO Device
-
int vfio_set_irq(struct vfio_device *dev, int *eventfds, int count)
Enable IRQs through eventfds
Parameters
struct vfio_device *devstruct vfio_deviceint *eventfdsarray of eventfds
int countnumber of eventfds
Description
Enable interrupts for a range of vectors. See linux/vfio.h for documentation on the format of eventfds.
Return
0 on success, -1 on error and sets errno.
-
int vfio_disable_irq(struct vfio_device *dev)
Disable all IRQs
Parameters
struct vfio_device *devstruct vfio_device
Description
Disable all IRQs.
Return
0 on success, -1 on error and sets errno.
-
int vfio_reset(struct vfio_device *dev)
reset vfio device
Parameters
struct vfio_device *devstruct vfio_deviceto reset
Description
Reset the VFIO device if supported.
Return
0 on success, -1 on error and sets errno.