[][src]Struct vfio_bindings::bindings::vfio::vfio_irq_info

#[repr(C)]
pub struct vfio_irq_info {
    pub argsz: __u32,
    pub flags: __u32,
    pub index: __u32,
    pub count: __u32,
}

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: __u32flags: __u32index: __u32count: __u32

Trait Implementations

impl Clone for vfio_irq_info[src]

impl Copy for vfio_irq_info[src]

impl Default for vfio_irq_info[src]

impl PartialEq<vfio_irq_info> for vfio_irq_info[src]

impl Debug for vfio_irq_info[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]