[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z6U6I-ln5AcGTjI9@cassiopeiae>
Date: Thu, 6 Feb 2025 23:39:31 +0100
From: Danilo Krummrich <dakr@...nel.org>
To: Lyude Paul <lyude@...hat.com>
Cc: rust-for-linux@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Maíra Canal <mairacanal@...eup.net>,
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>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Xiangfei Ding <dingxiangfei2009@...il.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] rust/kernel: Add faux device bindings
On Thu, Feb 06, 2025 at 11:30:30PM +0100, Danilo Krummrich wrote:
> On Thu, Feb 06, 2025 at 04:04:56PM -0500, Lyude Paul wrote:
> > This introduces a crate for working with faux devices in rust, along with
> > adding sample code to show how the API is used. Unlike other types of
> > devices, we don't provide any hooks for device probe/removal - since these
> > are optional for the faux API and are unnecessary in rust.
> >
> > Signed-off-by: Lyude Paul <lyude@...hat.com>
> > Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> > Cc: Maíra Canal <mairacanal@...eup.net>
> > ---
> > rust/bindings/bindings_helper.h | 1 +
> > rust/kernel/faux.rs | 60 ++++++++++++++++++++++++++++++++
> > rust/kernel/lib.rs | 1 +
> > samples/rust/Kconfig | 10 ++++++
> > samples/rust/Makefile | 1 +
> > samples/rust/rust_driver_faux.rs | 29 +++++++++++++++
> > 6 files changed, 102 insertions(+)
> > create mode 100644 rust/kernel/faux.rs
> > create mode 100644 samples/rust/rust_driver_faux.rs
Forgot to mention, we should also add the new files to the MAINTAINERS file.
Powered by blists - more mailing lists