summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-08-30 17:40:34 +0200
committerDanilo Krummrich <dakr@kernel.org>2026-09-04 17:58:47 +0200
commitbed87375f90f44cd2f9fe804a469274127d38593 (patch)
treee23c4f4730378ccbef6ebbe48992bdf5efba340c /tools/lib/python
parentc3d4fd0e9d27651d2daf223fa72128633a082b05 (diff)
rust: dma: tie Coherent and CoherentBox to the device's bound lifetime
Add a lifetime parameter to Coherent and CoherentBox that ties the DMA allocation to the device's bound scope, ensuring it is freed before the device is unbound. DMA allocations carry device resources (e.g. IOMMU mappings) that must not outlive the device's bound lifetime. Without a lifetime parameter, there was no compile-time enforcement that a Coherent or CoherentBox is dropped before the device is unbound. Propagate the new lifetime parameter through all users. Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260830193824.471089-5-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions