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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.