pub fn register_handler(irq: IrqNumber, handler: IrqHandler) -> KernelResult<()>Expand description
Register an IRQ handler for the given interrupt number.
The handler will be invoked when the interrupt fires and dispatch
is called. Only one handler may be registered per IRQ number.
§Errors
KernelError::NotInitializedif the IRQ manager has not been initialized.KernelError::AlreadyExistsif a handler is already registered for this IRQ.KernelError::InvalidArgumentif the IRQ number exceeds the maximum.