public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] rust: Add Lock::from_raw() and expose Guard::new()
@ 2024-11-19 23:11 Lyude Paul
  2024-11-19 23:11 ` [PATCH v4 1/2] rust: sync: Add Lock::from_raw() for Lock<(), B> Lyude Paul
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lyude Paul @ 2024-11-19 23:11 UTC (permalink / raw)
  To: rust-for-linux
  Cc: linux-kernel, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross

This is the third version of a small patch series to introduce
interfaces for working with locks that we've acquired from raw C
pointers, something that is quite useful for bindings like the rust
bindings - where there's a number of interfaces protected by BFLs, or
which require the implementation of callbacks that are known to occur
under lock.

Lyude Paul (2):
  rust: sync: Add Lock::from_raw() for Lock<(), B>
  rust: sync: Make Guard::new() public

 rust/kernel/sync/lock.rs | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)


base-commit: b2603f8ac8217bc59f5c7f248ac248423b9b99cb
-- 
2.47.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-27 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 23:11 [PATCH v4 0/2] rust: Add Lock::from_raw() and expose Guard::new() Lyude Paul
2024-11-19 23:11 ` [PATCH v4 1/2] rust: sync: Add Lock::from_raw() for Lock<(), B> Lyude Paul
2024-11-20  8:58   ` Alice Ryhl
2024-11-21 10:27   ` Filipe Xavier
2024-11-19 23:11 ` [PATCH v4 2/2] rust: sync: Make Guard::new() public Lyude Paul
2024-11-27 18:23 ` [PATCH v4 0/2] rust: Add Lock::from_raw() and expose Guard::new() Boqun Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox