Re: [PATCH v2 3/3] rust: dma.rs: Migrate to zerocopy's `Frombytes/IntoBytes`
From: Danilo Krummrich
Date: Sun Sep 06 2026 - 11:52:21 EST
On Sun Sep 6, 2026 at 2:47 PM CEST, Gary Guo wrote:
> I am surprised that just changing this is sufficient. Are all users of
> `CoherentBox` already have the both zerocopy and kernel traits implemented?
No, and I think the uaccess patch won't compile either. It breaks
impl<T: KnownSize + AsBytes + ?Sized> debugfs::BinaryWriter for Coherent<'_, T>
from the DMA code and I think it also breaks binder and tyr.