diff options
author | Lyude Paul <lyude@redhat.com> | 2024-11-21 01:26:28 +0300 |
---|---|---|
committer | Boqun Feng <boqun.feng@gmail.com> | 2024-12-20 01:04:42 +0300 |
commit | 37624dde4768ec25d2f9798aa75bf32e18c0eae2 (patch) | |
tree | 54b676008d3912e5087c6df49ae9dae867c84dfd /rust/kernel/sync.rs | |
parent | daa03fe50ec376aeadd63a264c471c56af194e83 (diff) | |
download | linux-37624dde4768ec25d2f9798aa75bf32e18c0eae2.tar.xz |
rust: sync: Add MutexGuard type alias
A simple helper alias for code that needs to deal with Guard types returned
from Mutexes.
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-2-lyude@redhat.com
Diffstat (limited to 'rust/kernel/sync.rs')
-rw-r--r-- | rust/kernel/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/sync.rs b/rust/kernel/sync.rs index 1eab7ebf25fd..2721b5c8deda 100644 --- a/rust/kernel/sync.rs +++ b/rust/kernel/sync.rs @@ -16,7 +16,7 @@ pub mod poll; pub use arc::{Arc, ArcBorrow, UniqueArc}; pub use condvar::{new_condvar, CondVar, CondVarTimeoutResult}; pub use lock::global::{global_lock, GlobalGuard, GlobalLock, GlobalLockBackend, GlobalLockedBy}; -pub use lock::mutex::{new_mutex, Mutex}; +pub use lock::mutex::{new_mutex, Mutex, MutexGuard}; pub use lock::spinlock::{new_spinlock, SpinLock}; pub use locked_by::LockedBy; |