rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] rust: Add Lock::from_raw() and expose Guard::new()
@ 2024-10-31 23:08 Lyude Paul
  2024-10-31 23:08 ` [PATCH v3 1/2] rust: sync: Add Lock::from_raw() for Lock<(), B> Lyude Paul
  2024-10-31 23:08 ` [PATCH v3 2/2] rust: sync: Make Guard::new() public Lyude Paul
  0 siblings, 2 replies; 8+ messages in thread
From: Lyude Paul @ 2024-10-31 23:08 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 | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)


base-commit: 718c4069896cabba5c39b637cbb7205927f16ae0
-- 
2.47.0


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 23:08 [PATCH v3 0/2] rust: Add Lock::from_raw() and expose Guard::new() Lyude Paul
2024-10-31 23:08 ` [PATCH v3 1/2] rust: sync: Add Lock::from_raw() for Lock<(), B> Lyude Paul
2024-11-18 23:46   ` Boqun Feng
2024-10-31 23:08 ` [PATCH v3 2/2] rust: sync: Make Guard::new() public Lyude Paul
2024-11-01  9:11   ` Alice Ryhl
2024-11-18 22:43     ` Lyude Paul
2024-11-18 23:48       ` Boqun Feng
2024-11-01 10:23   ` Filipe Xavier

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).