| From: |
| Lee Jones <lee-AT-kernel.org> |
| To: |
| lee-AT-kernel.org |
| Subject: |
| [PATCH v6 0/5] rust: miscdevice: Provide sample driver using the new MiscDevice bindings |
| Date: |
| Fri, 13 Dec 2024 13:47:05 +0000 |
| Message-ID: |
| <20241213134715.601415-1-lee@kernel.org> |
| Cc: |
| linux-kernel-AT-vger.kernel.org, arnd-AT-arndb.de, gregkh-AT-linuxfoundation.org, ojeda-AT-kernel.org, alex.gaynor-AT-gmail.com, boqun.feng-AT-gmail.com, gary-AT-garyguo.net, bjorn3_gh-AT-protonmail.com, benno.lossin-AT-proton.me, a.hindborg-AT-kernel.org, aliceryhl-AT-google.com, tmgross-AT-umich.edu, rust-for-linux-AT-vger.kernel.org |
| Archive-link: |
| Article |
This set depends on Alice's most recent MiscDevice changes:
https://lore.kernel.org/all/20241210-miscdevice-file-para...
Changelog v5 -> v6:
- pr_info() to dev_info() conversion (based on Alice's new set)
- Moved the example C program from the commit message to the file comments
- Changed mutex-drop commentary
Lee Jones (5):
Documentation: ioctl-number: Carve out some identifiers for use by
sample drivers
samples: rust: Provide example using the new Rust MiscDevice
abstraction
samples: rust_misc_device: Demonstrate additional get/set value
functionality
MAINTAINERS: Add Rust Misc Sample to MISC entry
samples: rust_misc_device: Provide an example C program to exercise
functionality
.../userspace-api/ioctl/ioctl-number.rst | 1 +
MAINTAINERS | 1 +
samples/rust/Kconfig | 10 +
samples/rust/Makefile | 1 +
samples/rust/rust_misc_device.rs | 238 ++++++++++++++++++
5 files changed, 251 insertions(+)
create mode 100644 samples/rust/rust_misc_device.rs
--
2.47.1.613.gc27f4b7a9f-goog