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

set_priority

Function set_priority 

Source
pub fn set_priority(irq: IrqNumber, priority: u8) -> KernelResult<()>
Expand description

Set the priority of an IRQ line.

The interpretation of priority is architecture-dependent. See IrqController::set_priority for details.

§Errors

  • KernelError::NotInitialized if the interrupt controller has not been initialized.
  • KernelError::InvalidArgument if the priority value is out of range.