Skip to main content

Crate lockdep

Crate lockdep 

Source

Structs§

LockClassRegistration
A registration entry for a Rust lock class (stub for disabled lockdep).

Constants§

LOCK_FLAGS_ACTIVE_LIST_DISABLED
Do not add this acquisition to the active list. This may be required for locks that are used to protect context switching logic.
LOCK_FLAGS_IRQ_SAFE
Apply the irq-safety rules in addition to the common rules for all locks.
LOCK_FLAGS_LEAF
Apply the leaf lock rules in addition to the common rules for all locks. NOTE: Use this flag with caution. See https://fxbug.dev/459856993.
LOCK_FLAGS_MULTI_ACQUIRE
Apply the multi-acquire rules in additioon to the common rules for all locks.
LOCK_FLAGS_NESTABLE
Apply the nestable rules in addition to the common rules for all locks.
LOCK_FLAGS_NONE
Apply only common rules that apply to all locks.
LOCK_FLAGS_REPORTING_DISABLED
Do not report validation errors. This flag prevents recursive validation of locks that are acquired by reporting routines.
LOCK_FLAGS_RE_ACQUIRE_FATAL
Abort the program with an error if a lock is improperly acquired more than once in the same context.
LOCK_FLAGS_SINGLETON_LOCK
There is only one member of this locks class.
LOCK_FLAGS_TRACKING_DISABLED
Do not track this lock.

Traits§

LockClass
Trait implemented by lock class types to expose their dynamic LockClassId pointer.

Functions§

assert_no_locks_held
Asserts that the current thread holds no tracked locks.

Type Aliases§

LockFlags
Flags to specify which rules to apply to a lock class during validation.