Re: [PATCH v3 1/2] rust: irq: add support for request_irq()
From: Danilo Krummrich
Date: Mon Jun 02 2025 - 13:36:00 EST
On Mon, Jun 02, 2025 at 11:40:43AM -0300, Daniel Almeida wrote:
> I guess the only difference would be removing the handler() accessor, as the
> caller is now expected to figure this part out on his own, i.e.:
>
> In your example (IIUC) that would mean accessing the Arc in IRQHandler1
> and IRQHandler2 through some other clone and from the actual T:Handler in
> the callback.
Basically yes, but there's also the other alternative in [1] -- either is fine
for me.
[1] https://lore.kernel.org/lkml/aD3f1GSZJ6K-RP5r@pollux/