linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Initial work for Rust abstraction for HID device driver development
@ 2025-07-13 21:11 Rahul Rameshbabu
  2025-07-13 21:11 ` [PATCH v2 1/4] HID: core: Change hid_driver to use a const char* for name Rahul Rameshbabu
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Rahul Rameshbabu @ 2025-07-13 21:11 UTC (permalink / raw)
  To: rust-for-linux, linux-input
  Cc: Jiri Kosina, a.hindborg, alex.gaynor, aliceryhl, benno.lossin,
	Benjamin Tissoires, bjorn3_gh, boqun.feng, dakr, db48x, gary,
	ojeda, tmgross, peter.hutterer, Rahul Rameshbabu

Hello again,

I incorporated Danilo's and Peter's feedback from my v1. Additionally, I
implemented the AlwaysRefCounted trait for kernel::hid::Device and needed some
bindings from kref.

Link: https://lore.kernel.org/rust-for-linux/20250629045031.92358-2-sergeantsagara@protonmail.com/
Link: https://lore.kernel.org/rust-for-linux/20250313160220.6410-2-sergeantsagara@protonmail.com/
Link: https://binary-eater.github.io/tags/usb-monitor-control/

Rahul Rameshbabu (4):
  HID: core: Change hid_driver to use a const char* for name
  rust: add kref bindings
  rust: core abstractions for HID drivers
  rust: hid: Glorious Gaming PC Race Model O and O- mice reference
    driver

 MAINTAINERS                      |  15 +
 drivers/hid/Kconfig              |  16 ++
 drivers/hid/Makefile             |   1 +
 drivers/hid/hid-glorious.c       |   2 +
 drivers/hid/hid_glorious_rust.rs |  59 ++++
 include/linux/hid.h              |   2 +-
 rust/bindings/bindings_helper.h  |   3 +
 rust/helpers/helpers.c           |   1 +
 rust/helpers/kref.c              |  13 +
 rust/kernel/hid.rs               | 458 +++++++++++++++++++++++++++++++
 rust/kernel/lib.rs               |   2 +
 11 files changed, 571 insertions(+), 1 deletion(-)
 create mode 100644 drivers/hid/hid_glorious_rust.rs
 create mode 100644 rust/helpers/kref.c
 create mode 100644 rust/kernel/hid.rs


base-commit: 2009a2d5696944d85c34d75e691a6f3884e787c0
-- 
2.47.2



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-07-20 16:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-13 21:11 [PATCH v2 0/4] Initial work for Rust abstraction for HID device driver development Rahul Rameshbabu
2025-07-13 21:11 ` [PATCH v2 1/4] HID: core: Change hid_driver to use a const char* for name Rahul Rameshbabu
2025-07-13 21:12 ` [PATCH v2 2/4] rust: add kref bindings Rahul Rameshbabu
2025-07-20 16:02   ` Rahul Rameshbabu
2025-07-20 16:07     ` Boqun Feng
2025-07-13 21:12 ` [PATCH v2 3/4] rust: core abstractions for HID drivers Rahul Rameshbabu
2025-07-13 21:57   ` Miguel Ojeda
2025-07-20 16:44     ` Rahul Rameshbabu
2025-07-15 15:04   ` Danilo Krummrich
2025-07-19 22:46     ` Rahul Rameshbabu
2025-07-13 21:12 ` [PATCH v2 4/4] rust: hid: Glorious Gaming PC Race Model O and O- mice reference driver Rahul Rameshbabu
2025-07-13 21:46   ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).