Re: [PATCH 2/3] rust: dma: generalize BinaryWriter impl for Coherent<T>
From: Danilo Krummrich
Date: Fri Mar 27 2026 - 17:10:31 EST
On Wed Mar 25, 2026 at 1:39 AM CET, Danilo Krummrich wrote:
> Generalize the BinaryWriter implementation from Coherent<[u8]> to
> Coherent<T> where T: KnownSize + AsBytes + ?Sized. The implementation
> only uses size() and write_dma(), neither of which depends on the
> inner type being a byte slice.
>
> This allows any Coherent allocation with an AsBytes inner type to be
> exposed as a debugfs binary file.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Applied to drm-rust-next, thanks!