[PATCH v6 0/5] rust: miscdevice: Provide sample driver using the new MiscDevice bindings

Lee Jones posted 5 patches 1 year ago
.../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
[PATCH v6 0/5] rust: miscdevice: Provide sample driver using the new MiscDevice bindings
Posted by Lee Jones 1 year ago
This set depends on Alice's most recent MiscDevice changes:

https://lore.kernel.org/all/20241210-miscdevice-file-param-v3-0-b2a79b666dc5@google.com/

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
Re: [PATCH v6 0/5] rust: miscdevice: Provide sample driver using the new MiscDevice bindings
Posted by Greg KH 12 months ago
On Fri, Dec 13, 2024 at 01:47:05PM +0000, Lee Jones wrote:
> This set depends on Alice's most recent MiscDevice changes:
> 
> https://lore.kernel.org/all/20241210-miscdevice-file-param-v3-0-b2a79b666dc5@google.com/
> 
> 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

Much nicer, thanks!  I've applied, and Alice's changes, to my
driver-core-testing branch, let's see what 0-day has to say about
them...

greg k-h