rustubs::proc::sync::irq

Trait IRQHandler

Source
pub trait IRQHandler {
    // Required method
    unsafe fn do_prologue();

    // Provided method
    fn get_gate() -> IRQGate { ... }
}
Expand description

device driver trait that has only prologue

Required Methods§

Source

unsafe fn do_prologue()

the “hardirq” part of the irq handler, it must not be interrupted. unsafe: must guarantee the prologue is called with irq disabled the prologue should be short and bounded. It must not block.

Provided Methods§

Source

fn get_gate() -> IRQGate

returns an IRQGate to be registered with the plugbox

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§