-
- Downloads
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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- MAINTAINERS 2 additions, 0 deletionsMAINTAINERS
- rust/bindings/bindings_helper.h 2 additions, 0 deletionsrust/bindings/bindings_helper.h
- rust/kernel/faux.rs 67 additions, 0 deletionsrust/kernel/faux.rs
- rust/kernel/lib.rs 1 addition, 0 deletionsrust/kernel/lib.rs
- samples/rust/Kconfig 10 additions, 0 deletionssamples/rust/Kconfig
- samples/rust/Makefile 1 addition, 0 deletionssamples/rust/Makefile
- samples/rust/rust_driver_faux.rs 29 additions, 0 deletionssamples/rust/rust_driver_faux.rs
Loading
Please register or sign in to comment