Hi Danilo,

On 11/26/26 12:41, Danilo Krummrich wrote:
> On Mon Nov 23, 2026 at 3:58 PM CET, Laura Nao wrote:
>> +impl<'a, T: TyrIrqTrait> TyrIrqRegistration<'a, T> {
>> +    /// Requests a threaded IRQ registration for `irq`, using `name` to 
>> look up the interrupt.
>> +    ///
>> +    /// # Safety
>> +    ///
>> +    /// Callers must not `mem::forget()` the resulting registration or 
>> otherwise prevent its
>> +    /// [`Drop`] implementation from running.
>> +    pub(crate) unsafe fn request(
>> +        pdev: &'a platform::Device<Bound>,
>> +        name: &'static CStr,
>> +        irq: T,
>> +        hw: Arc<HwGate<'a>>,
>> +    ) -> Result<Pin<KBox<Self>>>
>
> Why does this not return a pin initializer itself?
>
> I don't think this has a user in this series (except job_irq_init(), which
> itself seems unused), but I expect this to be stored in some other container
> that is pinned anyway.
>
> (Note that in C we'd also not need a separate allocation and just embed it in
> its corresponding container.)
>

Thanks for flagging this, came to the same conclusion this morning after 
rethinking about how this will be stored in TyrDrmRegistrationData. 
I'll fix this in the next revision.

Best,

Laura

Reply via email to