public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] rust: WMI abstractions
@ 2026-01-07 20:35 Gladyshev Ilya
  2026-01-07 20:35 ` [PATCH 1/3] rust: enable const_intrinsic_copy feature Gladyshev Ilya
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Gladyshev Ilya @ 2026-01-07 20:35 UTC (permalink / raw)
  To: foxido @ foxido . dev-cc= Rafael J. Wysocki
  Cc: Len Brown, Miguel Ojeda, Boqun Feng, Gary Guo, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
	Tamir Duberstein, Armin Wolf, platform-driver-x86, linux-kernel,
	rust-for-linux, linux-acpi, Gladyshev Ilya

Overview
========
This patchset implements WMI abstractions for Rust drivers. It is the successor
of the previous RFC posting [0]. These abstractions allow most WMI drivers to be
implemented in Rust (provided other dependencies are abstracted as well).

Currently, the only driver in existence is a stripped-down rewrite of redmi-wmi
that can probe itself with custom data and print messages on notification
(posted in [0]).

I am currently working on wrapping redmi-wmi's other dependencies (sparse-keyboard),
so I can provide it as a reference driver (Armin is OK with that [1]).

Notes
=====
I do not know how these abstractions should be handled in MAINTAINERS, so for now I have
simply added them to the original WMI entry. I would be happy to be added as a reviewer
to keep the Rust version 'synced'/valid though.

[0]: https://lore.kernel.org/rust-for-linux/cover.1766331321.git.foxido@foxido.dev/
[1]: https://lore.kernel.org/rust-for-linux/c7384f13-e286-45a4-95c6-24d389217185@gmx.de/

Gladyshev Ilya (3):
  rust: enable const_intrinsic_copy feature
  rust: implement wrapper for acpi_object
  rust: add WMI abstractions

 MAINTAINERS                     |   1 +
 rust/bindings/bindings_helper.h |   1 +
 rust/kernel/acpi.rs             |  91 +++++++++++
 rust/kernel/lib.rs              |   3 +
 rust/kernel/wmi.rs              | 277 ++++++++++++++++++++++++++++++++
 5 files changed, 373 insertions(+)
 create mode 100644 rust/kernel/wmi.rs


base-commit: 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
-- 
2.52.0


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

end of thread, other threads:[~2026-01-11 17:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-07 20:35 [PATCH 0/3] rust: WMI abstractions Gladyshev Ilya
2026-01-07 20:35 ` [PATCH 1/3] rust: enable const_intrinsic_copy feature Gladyshev Ilya
2026-01-07 20:35 ` [PATCH 2/3] rust: implement wrapper for acpi_object Gladyshev Ilya
2026-01-08 13:21   ` Gary Guo
2026-01-08 17:11     ` Gladyshev Ilya
2026-01-08 18:46       ` Miguel Ojeda
2026-01-09 10:57         ` Gladyshev Ilya
2026-01-11 17:57           ` Miguel Ojeda
2026-01-08 20:06       ` Gary Guo
2026-01-09 10:30         ` Gladyshev Ilya
2026-01-07 20:35 ` [PATCH 3/3] rust: add WMI abstractions Gladyshev Ilya
2026-01-08 19:48   ` Kari Argillander
2026-01-09 11:12     ` Gladyshev Ilya
2026-01-09 11:17       ` Kari Argillander
2026-01-08 20:48   ` Kari Argillander
2026-01-09 11:01     ` Gladyshev Ilya
2026-01-09 11:15       ` Kari Argillander
2026-01-09 11:31         ` Gladyshev Ilya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox