pub trait InterruptController {
    unsafe fn acknowledge_interrupt() -> Option<InterruptNum>;
    unsafe fn end_interrupt(num: InterruptNum);

    unsafe fn init() { ... }
}
Expand description

An abstract interface to an interrupt controller. Implemented by use_gic!.

Required Methods

Get the currently signaled interrupt and acknowledge it.

Safety

This is only intended to be called by the port in an IRQ handler.

Notify that the kernel has completed the processing of the specified interrupt.

Safety

This is only intended to be called by the port in an IRQ handler.

Provided Methods

Initialize the driver. This will be called just before entering PortToKernel::boot.

Safety

This is only intended to be called by the port.

Implementors