pub fn deregister_interrupt(
    interrupt_num: u8,
    func: InterruptHandler
) -> Result<(), &'static str>
Expand description

Deregisters an interrupt handler, making it available to the rest of the system again.

As a sanity/safety check, the caller must provide the interrupt_handler that is currently registered for the given IRQ interrupt_num. This function returns an error if the currently-registered handler does not match ‘func’.

Arguments

  • interrupt_num: the IRQ that needs to be deregistered
  • func: the handler that should currently be stored for ‘interrupt_num’