Struct vfio_bindings::bindings::vfio::vfio_irq_info [−][src]
#[repr(C)]pub struct vfio_irq_info {
pub argsz: __u32,
pub flags: __u32,
pub index: __u32,
pub count: __u32,
}
Expand 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.
Fields
argsz: __u32
flags: __u32
index: __u32
count: __u32
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for vfio_irq_info
impl Send for vfio_irq_info
impl Sync for vfio_irq_info
impl Unpin for vfio_irq_info
impl UnwindSafe for vfio_irq_info
Blanket Implementations
Mutably borrows from an owned value. Read more