twx-linux/rust/kernel/sync
Lyude Paul daa03fe50e rust: sync: Make Guard::new() public
Since we added a `Lock::from_raw()` function previously, it makes sense
to also introduce an interface for creating a `Guard` from a reference
to a `Lock` for instances where we've derived the `Lock` from a raw
pointer and know that the lock is already acquired, there are such
usages in KMS API.

[Boqun: Add backquotes to type names, reformat the commit log, reword a
 bit on the usage of KMS API]

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Filipe Xavier <felipe_life@live.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20241119231146.2298971-3-lyude@redhat.com
2024-12-19 14:04:42 -08:00
..
arc rust: provide proper code documentation titles 2024-10-07 21:39:57 +02:00
lock rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
arc.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
condvar.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
lock.rs rust: sync: Make Guard::new() public 2024-12-19 14:04:42 -08:00
locked_by.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
poll.rs rust: file: add abstraction for poll_table 2024-09-30 13:02:29 +02:00