Re: [PATCH 5/5] samples: rust_misc_device: Expand the sample to support read()ing from userspace

From: Andreas Hindborg
Date: Wed Mar 19 2025 - 16:16:48 EST


"Alice Ryhl" <aliceryhl@xxxxxxxxxx> writes:

> From: Lee Jones <lee@xxxxxxxxxx>
>
> A userland application can now operate on the char device with read() in
> order to consume a locally held buffer. Memory for the buffer is to be
> provisioned and the buffer populated in its subsequently provided
> write() counterpart.
>
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
> Co-developed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>


Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>


Best regards,
Andreas Hindborg