Expand description
Scheduler-owned locks, wait queues and IRQ waiting.
Runtime providers use crate::runtime::sync for PI, blocking and lockdep
capabilities. The bridge shares the scheduler’s waiters, donation graph
and wakeup state.
Modules§
- irq
- Single-owner notification capabilities for hard IRQ producers.
- membarrier
- Scheduler-mediated memory barriers and address-space registration.
Structs§
- IrqReturn
Preempt Guard - A preemption guard whose final release is an explicit IRQ-return boundary.
- IrqSave
Guard - An RAII guard which saves and disables local interrupts while it is alive.
- PiMutex
Lock Interrupted - Interruption observed while waiting for a PI mutex.
- Preempt
Guard - An RAII guard which disables kernel preemption while it is alive.
- Preempt
IrqSave Guard - An RAII guard which disables preemption and local interrupts.
- RawMutex
- A non-recursive, urgency-ordered PI mutex implementing
lock_api::RawMutex. - Spin
Lock - A non-sleeping mutual-exclusion lock.
- Spin
RwLock - A non-sleeping read-write lock with acquisition-site context policy.
- Wait
Queue - A FIFO of scheduler threads that may sleep in ordinary task context.
- Wait
Queue Wake Token - An exact wake capability for one externally registered task waiter.
Enums§
- Wait
Queue Registration - Result of publishing an exact waiter into a composite notification source.
- Wait
Queue Wake Outcome - Result of selecting one exact
WaitQueueWakeToken.
Traits§
- Interruptible
Mutex Ext - Linux rtmutex-style interruptible acquisition for a PI mutex.
- Lockdep
Mutex Ext - Adds lockdep subclass acquisition to a sleeping
Mutex.
Functions§
- dump_
lockdep_ trace - hardirq_
enter - Publishes entry into the runtime’s hard-interrupt lifecycle.
- hardirq_
exit - Publishes exit from the runtime’s hard-interrupt lifecycle.
- set_
lockdep_ trace_ enabled - wait_
until_ registered - Blocks until
conditionis true while publishing one exact wake token.
Type Aliases§
- IrqMutex
- A non-sleeping mutex whose guard saves and disables local IRQs.
- Lock
Subclass - Mutex
- A safe PI mutex using
RawMutex. - Mutex
Guard - A non-send guard returned by
Mutex. - RawIrq
Save Mutex - A raw spin lock that disables kernel preemption and local IRQs while held,
mirroring
SpinLock::lock_irqsavebut exposed as alock_api::RawMutexfor use with foreign generic code. - RawSpin
Lock Guard - A guard returned by
SpinLock::lock_raw. - RawSpin
RwLock Read Guard - A raw read guard.
- RawSpin
RwLock Write Guard - A raw write guard.
- Spin
Lock Guard - A guard returned by
SpinLock::lock. - Spin
Lock IrqSave Guard - A guard returned by
SpinLock::lock_irqsave. - Spin
RwLock IrqSave Read Guard - An IRQ-save read guard.
- Spin
RwLock IrqSave Write Guard - An IRQ-save write guard.
- Spin
RwLock Read Guard - A read guard returned by
SpinRwLock::read. - Spin
RwLock Write Guard - A write guard returned by
SpinRwLock::write.