Trait pci_core::msi::MsiControl

source ·
pub trait MsiControl: Send {
    // Required methods
    fn enable(&mut self, address: u64, data: u32);
    fn disable(&mut self);
    fn signal(&mut self, address: u64, data: u32);
}
Expand description

Trait modelling an individual MSI interrupt.

Required Methods§

source

fn enable(&mut self, address: u64, data: u32)

Enables the interrupt, so that signaling the interrupt delivers an MSI to the specified address/data pair.

source

fn disable(&mut self)

Disables the interrupt, allowing the backing object to release resources associated with this MSI.

source

fn signal(&mut self, address: u64, data: u32)

Signals the interrupt.

The caller must ensure that the interrupt is enabled with the same address/data pair before calling this method. The address/data is provided here redundantly for the convenience of the implementation.

Implementors§

source§

impl<T: Send + FnMut(u64, u32)> MsiControl for T