Re: [PATCH 1/3] rust: uaccess: generalize write_dma() to accept any Coherent<T>
From: Alexandre Courbot
Date: Wed Mar 25 2026 - 20:40:39 EST
On Wed Mar 25, 2026 at 9:39 AM JST, Danilo Krummrich wrote:
> Generalize write_dma() from &Coherent<[u8]> to &Coherent<T> where
> T: KnownSize + AsBytes + ?Sized. The function body only uses as_ptr()
> and size(), which work for any such T, so there is no reason to
> restrict it to byte slices.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
The series,
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>