Module kernel::sync::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

Structs

  • A lock guard.
  • A mutual exclusion primitive.

Traits

  • The “backend” of a lock.
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.