Skip to content

Initial work for Rust abstraction for HID device driver development

Rahul Rameshbabu linux-input lkml oe-kbuild-all rust-for-linux 9 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 0 repliesNew
  2. v62 patches 8 repliesSuperseded
  3. v52 patches 0 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v42 patches0 repliesSuperseded
v3 posting 3/33 patches5 repliesApplied
v3 posting 2/33 patches0 repliesSuperseded
v3 posting 1/33 patches0 repliesSuperseded
v24 patches7 repliesSuperseded
v13 patches11 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust: core abstractions for HID driversMAINTAINERS drivers/hid/Kconfig drivers/hid/Makefile +4 more+538 -00 replies
2/2rust: hid: Glorious PC Gaming Race Model O and O- mice reference driverMAINTAINERS drivers/hid/hid-glorious.c drivers/hid/rust/Kconfig +2 more+97 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/2] Initial work for Rust abstraction for HID device driver development

Thanks Gary and others for the great review on v6. In parallel to v7, I am working on a more complex driver for RazerBlade laptops that I am hoping will be interesting for review.

Rahul Rameshbabu (2):
rust: core abstractions for HID drivers
rust: hid: Glorious PC Gaming Race Model O and O- mice reference
driver

 MAINTAINERS                           |  14 +
 drivers/hid/Kconfig                   |   2 +
 drivers/hid/Makefile                  |   2 +
 drivers/hid/hid-glorious.c            |   2 +
 drivers/hid/rust/Kconfig              |  28 ++
 drivers/hid/rust/Makefile             |   6 +
 drivers/hid/rust/hid_glorious_rust.rs |  67 ++++
 rust/bindings/bindings_helper.h       |   3 +
 rust/kernel/hid.rs                    | 509 ++++++++++++++++++++++++++
 rust/kernel/lib.rs                    |   2 +
 10 files changed, 635 insertions(+)
 create mode 100644 drivers/hid/rust/Kconfig
 create mode 100644 drivers/hid/rust/Makefile
 create mode 100644 drivers/hid/rust/hid_glorious_rust.rs
 create mode 100644 rust/kernel/hid.rs

base-commit: b3d161f22ba9b2dc16bb82aa2b8515d98c99624f

Signature · 1 line
2.52.0