VFIO Device

int vfio_set_irq(struct vfio_device *dev, int *eventfds, int count)

Enable IRQs through eventfds

Parameters

struct vfio_device *dev

struct vfio_device

int *eventfds

array of eventfds

int count

number 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 *dev

struct 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 *dev

struct vfio_device to reset

Description

Reset the VFIO device if supported.

Return

0 on success, -1 on error and sets errno.