pub struct IrqRoutes { /* private fields */ }
Expand description
A set of IRQ routes.
This is used to implement IoApicRouting
when the backing hypervisor does
not require such routes internally.
Implementations§
Source§impl IrqRoutes
impl IrqRoutes
pub fn new() -> Self
Sourcepub fn set_irq_route(&self, irq: u8, request: Option<MsiRequest>)
pub fn set_irq_route(&self, irq: u8, request: Option<MsiRequest>)
Sets the associated interrupt request for the given irq.
Sourcepub fn assert_irq(&self, irq: u8, assert: impl FnOnce(MsiRequest))
pub fn assert_irq(&self, irq: u8, assert: impl FnOnce(MsiRequest))
Asserts the given irq, using the route established by set_irq_route
.
Calls assert
to deliver the interrupt.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IrqRoutes
impl !RefUnwindSafe for IrqRoutes
impl Send for IrqRoutes
impl Sync for IrqRoutes
impl Unpin for IrqRoutes
impl UnwindSafe for IrqRoutes
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