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ยง
- fixed_
queue ๐ - guardian
- Lock guardian trait : determines the guard behaviour of [
SpinLock]. - irq ๐
- preempt
- Preemption guard : disables preemption for the lifetime of the guard.
- spinlock ๐
- Generic spinlock with configurable guard behaviour.
- waitqueue
- Wait queue and condition variable for blocking/waking tasks.
Structsยง
- Fixed
Queue - Fixed-capacity FIFO queue with no heap allocation.
- IrqDisabled
Token - Typed proof that IRQs are masked on the current CPU.
- 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 - Legacy alias: register the first available trace slot.
- debug_
set_ trace_ lock_ addr - Register a lock address for E9 trace. Returns the slot index (0..7),
or
Noneif all slots are in use. - debug_
set_ trace_ slab_ addr - Legacy alias: register the first available trace slot.
- 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.