Skip to main content

Module lock

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§

Guard
A lock guard.
Lock
A mutual exclusion primitive.

Traits§

Backend
The “backend” of a lock.