[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240916220818.567277-1-lyude@redhat.com>
Date: Mon, 16 Sep 2024 18:05:45 -0400
From: Lyude Paul <lyude@...hat.com>
To: rust-for-linux@...r.kernel.org
Cc: Danilo Krummrich <dakr@...hat.com>,
airlied@...hat.com,
Ingo Molnar <mingo@...hat.com>,
Will Deacon <will@...nel.org>,
Waiman Long <longman@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org,
Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...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@...sung.com>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>
Subject: [PATCH 0/1] rust: sync: Add Lock::from_raw for ZST data types
This patch just adds a ::from_raw method to the kernel's Lock type,
which can be used for locks where the data type is a ZST.
The current example usecase for this is rvkms, specifically
rust/kernel/drm/device.rs (kernel::drm::device::Device::event_lock())
https://gitlab.freedesktop.org/lyudess/linux/-/tree/rvkms-example-09162024
Lyude Paul (1):
rust: sync: Add Lock::from_raw() for ZST data types
rust/kernel/sync/lock.rs | 32 ++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
base-commit: a2f11547052001bd448ccec81dd1e68409078fbb
--
2.46.0
Powered by blists - more mailing lists