2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/rust/kernel/sync
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
..
arc rust: provide proper code documentation titles 2024-10-07 21:39:57 +02:00
lock rust: sync: Add lock::Backend::assert_is_held() 2024-12-19 14:04:42 -08:00
arc.rs rust: kernel: add improved version of ForeignOwnable::borrow_mut 2025-01-13 23:46:07 +01:00
condvar.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
lock.rs rust: sync: lock: Add an example for Guard:: Lock_ref() 2025-03-08 00:55:04 +01: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
rcu.rs rust: add rcu abstraction 2024-12-20 17:19:26 +01:00