diff options
| author | 2026-08-29 15:15:36 +0200 | |
|---|---|---|
| committer | 2026-09-04 17:58:47 +0200 | |
| commit | c3d4fd0e9d27651d2daf223fa72128633a082b05 (patch) | |
| tree | 96da3e8a304d4849ea99901fa31a6ba4cdddb327 /scripts/Makefile.thinlto | |
| parent | rust: dma: tie CoherentHandle to the device's bound lifetime (diff) | |
samples: rust_dma: separate driver type from driver data
Split DmaSampleDriver into a driver type and a separate DmaSampleData
struct for the driver's bus device private data, using
DmaSampleData<'bound> as the Driver::Data<'bound> associated type.
Store a &'bound pci::Device<Bound> reference instead of an
ARef<pci::Device>, tying the data to the device's bound scope.
This prepares for adding a lifetime parameter to dma::Coherent, which
requires the data type to carry a lifetime.
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260830193824.471089-4-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
