pub struct MsiInterrupt { /* private fields */ }
Expand description
A message-signaled interrupt.
Implementations§
Source§impl MsiInterrupt
impl MsiInterrupt
Sourcepub fn enable(&mut self, address: u64, data: u32, set_pending: bool)
pub fn enable(&mut self, address: u64, data: u32, set_pending: bool)
Enables the interrupt.
If set_pending
, or if the internal pending state is set, then delivers
the interrupt immediately.
Sourcepub fn disable(&mut self)
pub fn disable(&mut self)
Disables the interrupt.
Interrupt deliveries while the interrupt is disabled will set an internal pending state.
Sourcepub fn drain_pending(&mut self) -> bool
pub fn drain_pending(&mut self) -> bool
Clears any internal pending state and returns it.
Auto Trait Implementations§
impl Freeze for MsiInterrupt
impl !RefUnwindSafe for MsiInterrupt
impl Send for MsiInterrupt
impl Sync for MsiInterrupt
impl Unpin for MsiInterrupt
impl !UnwindSafe for MsiInterrupt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more