Re: [PATCH v13 0/7] rust: add dma coherent allocator abstraction
From: Danilo Krummrich
Date: Fri Mar 07 2025 - 06:12:58 EST
On Fri, Mar 07, 2025 at 01:06:17PM +0200, Abdiel Janulgue wrote:
> This series adds the rust bindings for the dma coherent allocator which
> is needed for nova-core[0]. For v13, the biggest change is to move out
> the as_slice and write helpers for later discussion. The object is also
> now wrapped in Devres to explicitly tie it to the lifetime of the
> device[1].
Just to clarify:
What is meant here is that a CoherentAllocation can't out-live driver unbind.
This is not equivalent to the lifetime of the corresponding struct device.