On Wed, Jul 23, 2025 at 07:35:26AM +0200, Alice Ryhl wrote: > On Wed, Jul 23, 2025 at 6:32 AM Boqun Feng <boqun.feng@xxxxxxxxx> wrote: > > > > On Tue, Jul 15, 2025 at 12:16:40PM -0300, Daniel Almeida wrote: > > > This patch adds support for non-threaded IRQs and handlers through > > > irq::Registration and the irq::Handler trait. > > > > > > Registering an irq is dependent upon having a IrqRequest that was > > > previously allocated by a given device. This will be introduced in > > > subsequent patches. > > > > > > Signed-off-by: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx> > > > --- > > [...] > > > diff --git a/rust/kernel/irq.rs b/rust/kernel/irq.rs > > > index 9abd9a6dc36f3e3ecc1f92ad7b0040176b56a079..01bd08884b72c2a3a9460897bce751c732a19794 100644 > > > --- a/rust/kernel/irq.rs > > > +++ b/rust/kernel/irq.rs > > > @@ -12,3 +12,8 @@ > > > > > > /// Flags to be used when registering IRQ handlers. > > > pub mod flags; > > > + > > > +/// IRQ allocation and handling. > > > +pub mod request; > > > + > > > +pub use request::{Handler, IrqRequest, IrqReturn, Registration}; > > > > I woulde use #[doc(inline)] here for these re-export. It'll give a list > > of struct/trait users can use in the `irq` module. > > You get the same effect by making `mod request` a private module. > Oh yes, that also works! I think we probably should do that. Regards, Boqun > Alice