]> Gentwo Git Trees - linux/.git/commit
rust: sync: Add SpinLockGuard type alias
authorLyude Paul <lyude@redhat.com>
Wed, 20 Nov 2024 22:26:29 +0000 (17:26 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Thu, 19 Dec 2024 22:04:42 +0000 (14:04 -0800)
commiteb5ccb038284dc0e69822d71aafcbf7b57394aad
treeef0e1d0ae3f28f48eecf29772cf8e2f321f1dec3
parent37624dde4768ec25d2f9798aa75bf32e18c0eae2
rust: sync: Add SpinLockGuard type alias

A simple helper alias for code that needs to deal with Guard types returned
from SpinLocks.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20241120222742.2490495-3-lyude@redhat.com
rust/kernel/sync.rs
rust/kernel/sync/lock/spinlock.rs