linux/samples/rust
Abdiel Janulgue fe58465905 rust: dma: convert the read/write macros to return Result
We could do better here by having the macros return `Result`,
so that we don't have to wrap these calls in a closure for
validation which is confusing.

Co-developed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/rust-for-linux/87h63qhz4q.fsf@kernel.org/
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Link: https://lore.kernel.org/r/20250602085444.1925053-3-abdiel.janulgue@gmail.com
[ Fix line length in dma_read!(). - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-06-23 15:34:13 +02:00
..
hostprogs samples: add first Rust examples 2022-09-28 09:03:08 +02:00
Kconfig drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
Makefile drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
rust_configfs.rs rust: configfs: add a sample demonstrating configfs usage 2025-05-12 11:05:07 +02:00
rust_dma.rs rust: dma: convert the read/write macros to return Result 2025-06-23 15:34:13 +02:00
rust_driver_auxiliary.rs samples: rust: add Rust auxiliary driver sample 2025-04-19 14:24:05 +02:00
rust_driver_faux.rs Driver core updates for 6.15-rc1 2025-04-01 11:02:03 -07:00
rust_driver_pci.rs samples: rust: pci: take advantage of Devres::access() 2025-05-04 17:54:08 +02:00
rust_driver_platform.rs Driver core updates for 6.15-rc1 2025-04-01 11:02:03 -07:00
rust_minimal.rs rust: module: introduce `authors` key 2025-03-10 15:12:17 +01:00
rust_misc_device.rs Char/Misc/IIO driver updates for 6.15-rc1 2025-04-01 11:26:08 -07: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: module: introduce `authors` key 2025-03-10 15:12:17 +01:00