Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
vfio_irq_info Struct Reference

#include <vfio.h>

Data Fields

__u32 argsz
 
__u32 flags
 
__u32 index
 
__u32 count
 

Detailed Description

VFIO_DEVICE_GET_IRQ_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 9, struct vfio_irq_info)

Retrieve information about a device IRQ. Caller provides struct vfio_irq_info with index value set. Caller sets argsz. Implementation of IRQ mapping is bus driver specific. Indexes using multiple IRQs are primarily intended to support MSI-like interrupt blocks. Zero count irq blocks may be used to describe unimplemented interrupt types.

The EVENTFD flag indicates the interrupt index supports eventfd based signaling.

The MASKABLE flags indicates the index supports MASK and UNMASK actions described below.

AUTOMASKED indicates that after signaling, the interrupt line is automatically masked by VFIO and the user needs to unmask the line to receive new interrupts. This is primarily intended to distinguish level triggered interrupts.

The NORESIZE flag indicates that the interrupt lines within the index are setup as a set and new subindexes cannot be enabled without first disabling the entire index. This is used for interrupts like PCI MSI and MSI-X where the driver may only use a subset of the available indexes, but VFIO needs to enable a specific number of vectors upfront. In the case of MSI-X, where the user can enable MSI-X and then add and unmask vectors, it's up to userspace to make the decision whether to allocate the maximum supported number of vectors or tear down setup and incrementally increase the vectors as each is enabled.

Definition at line 212 of file vfio.h.

Field Documentation

__u32 argsz

Definition at line 213 of file vfio.h.

__u32 count

Definition at line 220 of file vfio.h.

__u32 flags

Definition at line 214 of file vfio.h.

__u32 index

Definition at line 219 of file vfio.h.


The documentation for this struct was generated from the following file: