Re-exports§
pub use guardian::Guardian;pub use guardian::IrqDisabled;pub use guardian::PreemptDisabled;pub use preempt::PreemptGuard;pub use waitqueue::WaitCondition;pub use waitqueue::WaitQueue;
Modules§
- guardian
- Lock guardian trait : determines the guard behaviour of [
SpinLock]. - preempt
- Preemption guard : disables preemption for the lifetime of the guard.
- waitqueue
- Wait queue and condition variable for blocking/waking tasks.
Structs§
- Fixed
Queue - Fixed-capacity FIFO queue with no heap allocation.
- IrqDisabled
Token - Preuve typée que les IRQ sont masquées sur le CPU courant.
- Spin
Lock - A spinlock parameterised by a
Guardian. - Spin
Lock Guard - RAII guard that holds the lock and carries the guardian state.
Functions§
- debug_
clear_ watch_ lock_ addr - Clear the watched lock address.
- debug_
set_ trace_ buddy_ addr - Register buddy lock address for E9 trace (lock ordering vs scheduler).
- debug_
set_ trace_ lock_ addr - Register a lock address for E9 trace on drop (e.g. scheduler lock).
- debug_
set_ trace_ slab_ addr - Register slab lock address for E9 trace.
- debug_
set_ watch_ lock_ addr - Register a lock address to trace on every drop (serial console output).
- with_
irqs_ disabled - Execute a closure with IRQs disabled, providing an
IrqDisabledTokenas proof.