[−][src]Struct vfio_bindings::bindings::vfio::vfio_irq_info
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
impl Clone for vfio_irq_info
[src]
fn clone(&self) -> vfio_irq_info
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for vfio_irq_info
[src]
impl Default for vfio_irq_info
[src]
fn default() -> vfio_irq_info
[src]
impl PartialEq<vfio_irq_info> for vfio_irq_info
[src]
fn eq(&self, other: &vfio_irq_info) -> bool
[src]
fn ne(&self, other: &vfio_irq_info) -> bool
[src]
impl Debug for vfio_irq_info
[src]
Auto Trait Implementations
impl Send for vfio_irq_info
impl Sync for vfio_irq_info
impl Unpin for vfio_irq_info
impl UnwindSafe for vfio_irq_info
impl RefUnwindSafe for vfio_irq_info
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,