On Sun May 17, 2026 at 9:01 AM JST, Danilo Krummrich wrote: > Add a lifetime parameter to IoMem<'bound, SIZE> and > ExclusiveIoMem<'bound, SIZE>, storing a &'bound Device<Bound> reference > to tie the mapping to the device's lifetime. > > This mirrors the pci::Bar<'bound, SIZE> design and enables drivers to > hold I/O memory mappings directly in their HRT private data, tied to the > device lifetime. > > IoRequest::iomap_* methods now return the mapping directly instead of > wrapping it in Devres. Callers that need device-managed revocation can > call the new into_devres() method. > > Acked-by: Uwe Kleine-König <[email protected]> > Signed-off-by: Danilo Krummrich <[email protected]> > ---
Reviewed-by: Eliot Courtney <[email protected]>
