diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2026-05-25 23:21:06 +0300 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-05-27 17:24:28 +0300 |
| commit | 89f55d04c6028fa15800a4887faf51bdeebfa431 (patch) | |
| tree | ea3f89b1f6883e223e7c57be53ca77390975e772 /include/linux/input | |
| parent | 8ea0b6d5bef5e4f4637964c3b2cf732d9bf4f408 (diff) | |
| download | linux-89f55d04c6028fa15800a4887faf51bdeebfa431.tar.xz | |
rust: io: make IoMem and ExclusiveIoMem lifetime-parameterized
Add a lifetime parameter to IoMem<'a, SIZE> and ExclusiveIoMem<'a,
SIZE>, storing a &'a Device<Bound> reference to tie the mapping to the
device's lifetime.
This mirrors the pci::Bar<'a, 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 <ukleinek@kernel.org>
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260525202921.124698-20-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/input')
0 files changed, 0 insertions, 0 deletions
