rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Danilo Krummrich <dakr@kernel.org>
To: Lyude Paul <lyude@redhat.com>
Cc: rust-for-linux@vger.kernel.org,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Maíra Canal" <mairacanal@riseup.net>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Alex Gaynor" <alex.gaynor@gmail.com>,
	"Boqun Feng" <boqun.feng@gmail.com>,
	"Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <benno.lossin@proton.me>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	"Wedson Almeida Filho" <wedsonaf@gmail.com>,
	"Mika Westerberg" <mika.westerberg@linux.intel.com>,
	"Xiangfei Ding" <dingxiangfei2009@gmail.com>,
	"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] rust/kernel: Add faux device bindings
Date: Thu, 6 Feb 2025 23:39:31 +0100	[thread overview]
Message-ID: <Z6U6I-ln5AcGTjI9@cassiopeiae> (raw)
In-Reply-To: <Z6U4APfuIEOgMzmd@cassiopeiae>

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@redhat.com>
> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Cc: Maíra Canal <mairacanal@riseup.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.

  reply	other threads:[~2025-02-06 22:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06 21:04 [PATCH] rust/kernel: Add faux device bindings Lyude Paul
2025-02-06 21:44 ` Thomas Weißschuh
2025-02-06 22:30 ` Danilo Krummrich
2025-02-06 22:39   ` Danilo Krummrich [this message]
2025-02-06 23:04   ` Lyude Paul
2025-02-07  0:16     ` Danilo Krummrich
2025-02-07  0:21       ` Lyude Paul
2025-02-07  0:35         ` Danilo Krummrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z6U6I-ln5AcGTjI9@cassiopeiae \
    --to=dakr@kernel.org \
    --cc=a.hindborg@kernel.org \
    --cc=alex.gaynor@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=benno.lossin@proton.me \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=dingxiangfei2009@gmail.com \
    --cc=gary@garyguo.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lyude@redhat.com \
    --cc=mairacanal@riseup.net \
    --cc=mika.westerberg@linux.intel.com \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tmgross@umich.edu \
    --cc=wedsonaf@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).