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

enable_irq

Function enable_irq 

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

Enable an IRQ line on the hardware interrupt controller.

Delegates to the architecture-specific controller:

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

§Errors

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