pub struct SystemInterruptController(/* private fields */);
Expand description
Structure representing a top-level/system-wide interrupt controller chip, responsible for routing interrupts between peripherals and CPU cores.
On x86_64, this corresponds to an IoApic.
Trait Implementations§
source§impl SystemInterruptControllerApi for SystemInterruptController
impl SystemInterruptControllerApi for SystemInterruptController
source§fn id(&self) -> SystemInterruptControllerId
fn id(&self) -> SystemInterruptControllerId
Returns the unique ID of this system-wide interrupt controller.
source§fn version(&self) -> SystemInterruptControllerVersion
fn version(&self) -> SystemInterruptControllerVersion
Returns the version ID of this system-wide interrupt controller.
source§fn get_destination(
&self,
interrupt_num: InterruptNumber
) -> Result<(Vec<CpuId>, Priority), &'static str>
fn get_destination( &self, interrupt_num: InterruptNumber ) -> Result<(Vec<CpuId>, Priority), &'static str>
Returns the destination(s) that the given
interrupt
is routed to
by this system-wide interrupt controller.source§fn set_destination(
&self,
sys_int_num: InterruptNumber,
destination: Option<CpuId>,
priority: Priority
) -> Result<(), &'static str>
fn set_destination( &self, sys_int_num: InterruptNumber, destination: Option<CpuId>, priority: Priority ) -> Result<(), &'static str>
Routes the given
interrupt
to the given destination
with the given priority
. Auto Trait Implementations§
impl !RefUnwindSafe for SystemInterruptController
impl Send for SystemInterruptController
impl Sync for SystemInterruptController
impl Unpin for SystemInterruptController
impl !UnwindSafe for SystemInterruptController
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