diff options
| author | Matthew Maurer <mmaurer@google.com> | 2025-09-04 21:13:56 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-09-10 18:58:25 +0200 |
| commit | 6f227d21377c8b86bcacb266ee1f72bc937f4598 (patch) | |
| tree | af4d4a494db119596830b69e6bf2e9771ce0471d /samples/rust/Makefile | |
| parent | 40ecc49466c8b7f9518c5fbbcfb24cb7e26c36c7 (diff) | |
samples: rust: Add debugfs sample driver
Adds a new sample driver that demonstrates the debugfs APIs.
The driver creates a directory in debugfs and populates it with a few
files:
- A read-only file that displays a fwnode property.
- A read-write file that exposes an atomic counter.
- A read-write file that exposes a custom struct.
This sample serves as a basic example of how to use the `debugfs::Dir`
and `debugfs::File` APIs to create and manage debugfs entries.
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-5-7d12a165685a@google.com
[ Change ACPI ID "LNUXDEBF" to "LNUXBEEF". - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples/rust/Makefile')
| -rw-r--r-- | samples/rust/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/rust/Makefile b/samples/rust/Makefile index bd2faad63b4f..61276222a99f 100644 --- a/samples/rust/Makefile +++ b/samples/rust/Makefile @@ -4,6 +4,7 @@ ccflags-y += -I$(src) # needed for trace events obj-$(CONFIG_SAMPLE_RUST_MINIMAL) += rust_minimal.o obj-$(CONFIG_SAMPLE_RUST_MISC_DEVICE) += rust_misc_device.o obj-$(CONFIG_SAMPLE_RUST_PRINT) += rust_print.o +obj-$(CONFIG_SAMPLE_RUST_DEBUGFS) += rust_debugfs.o obj-$(CONFIG_SAMPLE_RUST_DMA) += rust_dma.o obj-$(CONFIG_SAMPLE_RUST_DRIVER_PCI) += rust_driver_pci.o obj-$(CONFIG_SAMPLE_RUST_DRIVER_PLATFORM) += rust_driver_platform.o |