Module lock

Source
Expand description

Generic kernel lock and guard.

It contains a generic Rust lock and guard that allow for different backends (e.g., mutexes, spinlocks, raw spinlocks) to be provided with minimal effort.

Modules§

mutex
A kernel mutex.
spinlock
A kernel spinlock.

Structs§

GlobalGuard
A guard for a GlobalLock.
GlobalLock
Type used for global locks.
GlobalLockedBy
A version of LockedBy for a GlobalLock.
Guard
A lock guard.
Lock
A mutual exclusion primitive.

Traits§

Backend
The “backend” of a lock.
GlobalLockBackend
Trait implemented for marker types for global locks.