Re: [PATCH v2 2/3] rust: dma: rename dma_handle to dma_address
"Danilo Krummrich" <[email protected]>
| Newsgroups | dev.linux.lists.driver-core,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Wed Aug 5, 2026 at 7:01 AM CEST, Alexandre Courbot wrote:
> pub struct Coherent<T: KnownSize + ?Sized> {
> dev: ARef<device::Device>,
> - dma_handle: DmaAddress,
> + dma_addr: DmaAddress,
> cpu_addr: NonNull<T>,
> dma_attrs: Attrs,
> }
From the perspective of the DMA API the value actually serves as a handle for
the C API, so we could have also renamed the accessor only. But I think it is
fine either way.