[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250122235340.2145383-1-lyude@redhat.com>
Date: Wed, 22 Jan 2025 18:49:20 -0500
From: Lyude Paul <lyude@...hat.com>
To: rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: 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>
Subject: [PATCH 0/2] rust/kernel: Add bindings for manually creating devices
As many of you are probably aware, there's a number of kernel modules in
the Linux kernel that don't actually probe a device on a bus - but
instead simply create a virtual platform device. One such example is the
virmidi driver (sound/drivers/virmidi.c) These patches add the
ability to do this with our current platform device bindings for rust.
The main usecase for this is the WIP driver, rvkms:
https://patchwork.freedesktop.org/series/131522/
Lyude Paul (2):
rust/kernel: Add platform::Device::from_raw()
rust/kernel: Add platform::ModuleDevice
rust/kernel/platform.rs | 111 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 109 insertions(+), 2 deletions(-)
base-commit: b323d8e7bc03d27dec646bfdccb7d1a92411f189
--
2.47.1
Powered by blists - more mailing lists