Expand description
Synchronisation primitives.
This module contains the kernel APIs related to synchronisation that have been ported or wrapped for usage by Rust code in the kernel.
Re-exports§
pub use lock::mutex::new_mutex;
pub use lock::mutex::Mutex;
pub use lock::spinlock::new_spinlock;
pub use lock::spinlock::SpinLock;
Modules§
- Generic kernel lock and guard.
- Utilities for working with
struct poll_table
.
Macros§
- Defines a global lock.
- Creates a
CondVar
initialiser with the given name and a newly-created lock class.
Structs§
- A reference-counted pointer to an instance of
T
. - A borrowed reference to an
Arc
instance. - A conditional variable.
- A guard for a
GlobalLock
. - Type used for global locks.
- A version of
LockedBy
for aGlobalLock
. - Represents a lockdep class. It’s a wrapper around C’s
lock_class_key
. - Allows access to some data to be serialised by a lock that does not wrap it.
- A refcounted object that is known to have a refcount of 1.
Enums§
- The return type of
wait_timeout
.
Traits§
- Trait implemented for marker types for global locks.