Files
linux/rust/kernel
Boqun Feng c2849afafd rust: sync: lock: Add an example for Guard:: Lock_ref()
To provide examples on usage of `Guard::lock_ref()` along with the unit
test, an "assert a lock is held by a guard" example is added.

(Also apply feedback from Benno.)

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250223072114.3715-1-boqun.feng@gmail.com
Link: https://lore.kernel.org/r/20250307232717.1759087-9-boqun.feng@gmail.com
2025-03-08 00:55:04 +01:00
..
2024-09-30 13:02:29 +02:00
2025-02-13 16:58:58 +01:00
2024-12-20 17:19:26 +01:00
2025-02-13 16:58:58 +01:00
2024-12-20 17:21:04 +01:00
2024-10-08 15:44:36 +02:00
2024-12-16 21:49:33 +01:00
2024-12-20 17:19:26 +01:00
2024-11-26 17:54:58 -08:00
2024-11-10 23:58:00 +01:00
2024-11-04 16:21:44 -05:00