1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/samples/rust
Lyude Paul 78418f300d 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>
2025-02-13 16:58:58 +01:00
..
hostprogs samples: add first Rust examples 2022-09-28 09:03:08 +02:00
Kconfig rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
Makefile rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
rust_driver_faux.rs rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
rust_driver_pci.rs samples: rust: add Rust PCI sample driver 2024-12-20 17:21:04 +01:00
rust_driver_platform.rs samples: rust: add Rust platform sample driver 2024-12-20 17:43:02 +01:00
rust_minimal.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
rust_misc_device.rs samples: rust_misc_device: Provide an example C program to exercise functionality 2024-12-16 16:12:56 +01:00
rust_print_events.c rust: samples: add tracepoint to Rust sample 2024-11-04 16:21:44 -05:00
rust_print_main.rs rust: use derive(CoercePointee) on rustc >= 1.84.0 2025-01-13 23:45:30 +01:00