Re: [PATCH v2 3/3] rust: dma.rs: Migrate to zerocopy's `Frombytes/IntoBytes`

From: Sagar Taunk

Date: Sun Sep 06 2026 - 12:38:20 EST


I apologise, I only tested `rust/` for users and missed the drivers. I haven't checked the `tyr` driver but it does break `nova-core` and I don't really know how to migrate it.

The `netlink.rs` patch does compile though should I resend only that or leave it?
If so, would it be a `v3` or should I send it as a new thread


On Sunday, September 6th, 2026 at 9:18 PM, Danilo Krummrich <dakr@xxxxxxxxxx> wrote:

> 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.
>