linux/samples/rust
Gary Guo f84ecffa3f rust: dma: add zeroed constructor to `Coherent`
These constructors create a coherent container of a single object
instead of slice. They are named `zeroed` and `zeroed_with_attrs` to
emphasis that they are created initialized zeroed. It is intended that
there'll be new constructors that take `PinInit` instead of zeroing.

Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260320194626.36263-4-dakr@kernel.org
[ Use kernel import style. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-03-23 22:33:23 +01:00
..
hostprogs
Kconfig rust: Add SoC Driver Sample 2025-12-28 12:44:31 +01:00
Makefile rust: Add SoC Driver Sample 2025-12-28 12:44:31 +01:00
rust_configfs.rs rust: configfs: replace `kernel::c_str!` with C-Strings 2026-01-15 09:26:49 +01:00
rust_debugfs.rs samples: rust: debugfs: replace `kernel::c_str!` with C-Strings 2025-12-22 17:30:35 +01:00
rust_debugfs_scoped.rs samples: rust: debugfs: replace `kernel::c_str!` with C-Strings 2025-12-22 17:30:35 +01:00
rust_dma.rs rust: dma: add zeroed constructor to `Coherent` 2026-03-23 22:33:23 +01:00
rust_driver_auxiliary.rs Driver core changes for 7.0-rc1 2026-02-11 17:43:59 -08:00
rust_driver_faux.rs rust: samples: driver-core: remove redundant `.as_ref()` for `dev_*` print 2026-01-24 01:12:49 +01:00
rust_driver_i2c.rs samples: rust: i2c: replace `kernel::c_str!` with C-Strings 2026-01-19 01:13:23 +01:00
rust_driver_pci.rs sample: rust: pci: use `register!` macro 2026-03-17 20:04:11 +01:00
rust_driver_platform.rs rust: samples: driver-core: remove redundant `.as_ref()` for `dev_*` print 2026-01-24 01:12:49 +01:00
rust_driver_usb.rs rust: usb: use "kernel vertical" style for imports 2026-01-07 16:12:48 +01:00
rust_i2c_client.rs samples: rust: i2c: replace `kernel::c_str!` with C-Strings 2026-01-19 01:13:23 +01:00
rust_minimal.rs rust: samples: add a module parameter to the rust_minimal sample 2025-11-03 14:42:34 +01:00
rust_misc_device.rs Char/Misc/IIO driver changes for 7.0-rc1 2026-02-17 09:11:04 -08:00
rust_print_events.c
rust_print_main.rs samples: rust: remove imports available via prelude 2026-01-26 18:15:20 +01:00
rust_soc.rs rust: samples: driver-core: remove redundant `.as_ref()` for `dev_*` print 2026-01-24 01:12:49 +01:00