summaryrefslogtreecommitdiff
path: root/samples/rust/rust_debugfs.rs
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2025-09-04 21:13:54 +0000
committerDanilo Krummrich <dakr@kernel.org>2025-09-10 18:58:16 +0200
commit839dc1d15b9ba5318ed145b20efffcfa91c02a3d (patch)
treed684683f6ef63f2156a2766dd50befa84b879756 /samples/rust/rust_debugfs.rs
parent5e40b591cb46c0379d5406fa5548c9b2a3801353 (diff)
rust: debugfs: Add support for writable files
Extends the `debugfs` API to support creating writable files. This is done via the `Dir::write_only_file` and `Dir::read_write_file` methods, which take a data object that implements the `Reader` trait. Signed-off-by: Matthew Maurer <mmaurer@google.com> Tested-by: Dirk Behme <dirk.behme@de.bosch.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20250904-debugfs-rust-v11-3-7d12a165685a@google.com [ Fix up Result<()> -> Result. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples/rust/rust_debugfs.rs')
0 files changed, 0 insertions, 0 deletions