summaryrefslogtreecommitdiff
path: root/samples/rust/rust_pci_driver/mod.rs
AgeCommit message (Collapse)Author
2024-08-27rust: driver: use in-place init for `Registration`kangrejosDanilo Krummrich
Use in-place init to avoid dynamic allocation of driver structures. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2024-08-21rust: pci: make use of `driver::Registration`Danilo Krummrich
Use the generalized `Registration` structure and implement the `RegistrationOps` trait. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2024-08-21samples: rust: pci: use PCI driver abstractionsDanilo Krummrich
Use the PCI driver abstractions for registration. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2024-08-20samples: rust: pci: convert remaining C code to RustDanilo Krummrich
Convert the remaining C code to Rust, without adding any abstractions yet. Using the C structures directly leads to horrible driver code. However, this serves as baseline in order to illustrate subsequent incremental improvements. Signed-off-by: Danilo Krummrich <dakr@kernel.org>