Commit e5b0d7da authored by Lee Jones's avatar Lee Jones Committed by Greg Kroah-Hartman
Browse files

samples: rust_misc_device: Expand the sample to support read()ing from userspace



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: default avatarLee Jones <lee@kernel.org>
Reviewed-by: default avatarAndreas Hindborg <a.hindborg@kernel.org>
Co-developed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250822-iov-iter-v5-5-6ce4819c2977@google.com
parent 39c2745b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment