Re: [PATCH v5 3/6] rust: irq: add support for non-threaded IRQs and handlers
From: Danilo Krummrich
Date: Fri Jun 27 2025 - 15:35:20 EST
On Fri, Jun 27, 2025 at 01:21:05PM -0300, Daniel Almeida wrote:
> +/// Callbacks for an IRQ handler.
> +pub trait Handler: Sync {
> + /// The actual handler function. As usual, sleeps are not allowed in IRQ
> + /// context.
What about:
/// The hard IRQ handler.
///
/// This is executed in interrupt context, hence all corresponding
/// limitations do apply.
///
/// All work that does not necessarily need to be executed from
/// interrupt context, should be deferred to a threaded handler.
/// See also [`ThreadedRegistration`].
> + fn handle(&self) -> IrqReturn;
> +}