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