rust: debugfs: Add initial support for directories
authorMatthew Maurer <mmaurer@google.com>
Thu, 4 Sep 2025 21:13:52 +0000 (21:13 +0000)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 10 Sep 2025 16:57:43 +0000 (18:57 +0200)
commit7f201ca18c825592e392596a2fca2374dd2a4dfe
tree74a798895b8290b8119961f56a7ab1fd40767b70
parent4c48aed6dfcd32ea23e52adc1072405a62facf46
rust: debugfs: Add initial support for directories

Adds a `debugfs::Dir` type that can be used to create and remove
DebugFS directories. The `Dir` handle automatically cleans up the
directory on `Drop`.

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-1-7d12a165685a@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
MAINTAINERS
rust/bindings/bindings_helper.h
rust/kernel/debugfs.rs [new file with mode: 0644]
rust/kernel/debugfs/entry.rs [new file with mode: 0644]
rust/kernel/lib.rs