[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <92254c83-1075-4de1-bed7-38c99ada6ea2@nvidia.com>
Date: Tue, 29 Apr 2025 17:04:14 -0700
From: John Hubbard <jhubbard@...dia.com>
To: Matthew Maurer <mmaurer@...gle.com>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, Benno Lossin <benno.lossin@...ton.me>,
Andreas Hindborg <a.hindborg@...nel.org>, Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>, Danilo Krummrich <dakr@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Sami Tolvanen <samitolvanen@...gle.com>, Timur Tabi <ttabi@...dia.com>
Cc: linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org
Subject: Re: [PATCH 0/8] rust: DebugFS Bindings
On 4/29/25 4:15 PM, Matthew Maurer wrote:
> This series provides safe DebugFS bindings for Rust, with a sample
> driver using them.
Adding Timur Tabi, because he was looking into how to do this.
thanks,
John Hubbard
>
> The primary intended way to use these bindings is to attach a data
> object to a DebugFS directory handle, and use the contents of that
> attached object to serve what's inside the directory. Through a
> combination of pinning and equivariance, we can ensure that the pointers
> in the attached object will remain valid until after the DebugFS
> directory is made inaccessible.
>
> Signed-off-by: Matthew Maurer <mmaurer@...gle.com>
> ---
> Matthew Maurer (8):
> rust: debugfs: Bind DebugFS directory creation
> rust: debugfs: Bind file creation for long-lived Display
> rust: debugfs: Add scoped builder interface
> rust: debugfs: Allow subdir creation in builder interface
> rust: debugfs: Support format hooks
> rust: debugfs: Implement display_file in terms of fmt_file
> rust: debugfs: Helper macro for common case implementations
> rust: samples: Add debugfs sample
>
> MAINTAINERS | 2 +
> rust/bindings/bindings_helper.h | 1 +
> rust/helpers/dcache.c | 12 +
> rust/helpers/helpers.c | 1 +
> rust/kernel/debugfs.rs | 514 ++++++++++++++++++++++++++++++++++++++++
> rust/kernel/lib.rs | 1 +
> samples/rust/Kconfig | 11 +
> samples/rust/Makefile | 1 +
> samples/rust/rust_debugfs.rs | 120 ++++++++++
> 9 files changed, 663 insertions(+)
> ---
> base-commit: b6a7783d306baf3150ac54cd5124f6e85dd375b0
> change-id: 20250428-debugfs-rust-3cd5c97eb7d1
>
> Best regards,
Powered by blists - more mailing lists