diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2025-10-22 16:30:40 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-11-05 00:35:40 +0100 |
| commit | 9c804d9cf2dbe90cfde89c905b45aacbd07ee537 (patch) | |
| tree | 5b2288fdc17e55290f867cb03421b93db3937c5e /rust/kernel/pid_namespace.rs | |
| parent | 0ddceba2701e7012646f6df6d32c4e4b7c4dc938 (diff) | |
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>
Diffstat (limited to 'rust/kernel/pid_namespace.rs')
0 files changed, 0 insertions, 0 deletions