Trait kernel::irq::ThreadedHandler
source · [−]pub trait ThreadedHandler {
type Data: PointerWrapper;
fn handle_threaded_irq(
data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return;
fn handle_primary_irq(
_data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return { ... }
}
Expand description
A threaded irq handler.
Required Associated Types
type Data: PointerWrapper
type Data: PointerWrapper
The context data associated with and made available to the handlers.
Required Methods
fn handle_threaded_irq(
data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return
fn handle_threaded_irq(
data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return
Called from the handler thread.
Provided Methods
fn handle_primary_irq(
_data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return
fn handle_primary_irq(
_data: <Self::Data as PointerWrapper>::Borrowed<'_>
) -> Return
Called from interrupt context when the irq first happens.