Re: [PATCH v3 18/27] samples: rust: rust_driver_auxiliary: showcase lifetime-bound registration data

From: Eliot Courtney

Date: Tue May 19 2026 - 02:59:28 EST


On Sun May 17, 2026 at 9:01 AM JST, Danilo Krummrich wrote:
> Make the Data struct lifetime-parameterized, storing a reference to the
> parent pci::Device<Bound>. This demonstrates that registration data can
> hold device resources tied to the parent driver's lifetime.
>
> In connect(), retrieve the parent PCI device from the registration data
> rather than casting through adev.parent().
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---

Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>