Files
linux/rust/kernel
Danilo Krummrich 9c804d9cf2 rust: debugfs: support for binary large objects
Introduce support for read-only, write-only, and read-write binary files
in Rust debugfs. This adds:

- BinaryWriter and BinaryReader traits for writing to and reading from
  user slices in binary form.
- New Dir methods: read_binary_file(), write_binary_file(),
  `read_write_binary_file`.
- Corresponding FileOps implementations: BinaryReadFile,
  BinaryWriteFile, BinaryReadWriteFile.

This allows kernel modules to expose arbitrary binary data through
debugfs, with proper support for offsets and partial reads/writes.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-11-05 00:35:40 +01:00
..
2025-11-05 00:05:38 +01:00
2025-11-04 13:25:29 +01:00
2025-07-23 02:05:58 +02:00
2025-10-17 13:02:22 +02:00
2025-07-23 02:05:58 +02:00
2025-08-13 17:40:28 +02:00
2025-07-21 01:16:35 +02:00
2025-09-06 13:27:20 +02:00
2025-08-21 21:09:48 +02:00
2025-07-21 01:16:35 +02:00
2025-08-21 16:58:07 +02:00
2025-09-22 23:55:41 +02:00
2025-09-15 09:38:35 +02:00
2024-11-04 16:21:44 -05:00