⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

disable_irq

Function disable_irq 

Source
pub fn disable_irq(irq: IrqNumber) -> KernelResult<()>
Expand description

Disable an IRQ line on the hardware interrupt controller.

Delegates to the architecture-specific controller:

  • x86_64: masks the IRQ in the I/O APIC
  • AArch64: disables the interrupt in the GIC distributor
  • RISC-V: disables the interrupt source in the PLIC

§Errors

  • KernelError::NotInitialized if the interrupt controller has not been initialized.