Trait vmcore::line_interrupt::LineSetTarget
source · pub trait LineSetTarget: Send + Sync {
// Required method
fn set_irq(&self, vector: u32, high: bool);
}
Expand description
Unless you’re implementing an interrupt controller (e.g: the PIC, IOAPIC), you shouldn’t be using this trait!
NOTE: Individual devices should not use this trait directly!
Devices are expected to use LineInterrupt
, which decouples the details
of IRQ numbers and assignment from concrete device implementations.
The alternative, where devices get handed an interface that allows them to assert arbitrary IRQ lines, can lead to multiple devices inadvertently trampling on one another’s IRQ lines if you’re not careful.