rust/kernel: Add faux device bindings
authorLyude Paul <lyude@redhat.com>
Mon, 10 Feb 2025 12:30:26 +0000 (13:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2025 15:58:58 +0000 (16:58 +0100)
commit78418f300d3999f1cf8a9ac71065bf2eca61f4dd
treeb3d4fdf6b75576344bd56c5d8e8100a69cc4efa3
parent35fa2d88ca9481e5caf533d58b99ca259c63b2fe
rust/kernel: Add faux device bindings

This introduces a module for working with faux devices in rust, along with
adding sample code to show how the API is used. Unlike other types of
devices, we don't provide any hooks for device probe/removal - since these
are optional for the faux API and are unnecessary in rust.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: MaĆ­ra Canal <mairacanal@riseup.net>
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/2025021026-exert-accent-b4c6@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
rust/bindings/bindings_helper.h
rust/kernel/faux.rs [new file with mode: 0644]
rust/kernel/lib.rs
samples/rust/Kconfig
samples/rust/Makefile
samples/rust/rust_driver_faux.rs [new file with mode: 0644]