Expand description
OS-independent synchronization interfaces for TGOSKits kernels and components.
Acquisition methods state the required execution context: ordinary spin
acquisitions disable preemption, *_irqsave acquisitions additionally
save and disable local interrupts, and raw acquisitions require an explicit
unsafe contract. [Mutex] is always sleepable and never aliases a spin
lock.
Structs§
- IrqSave
Guard - An RAII guard which saves and disables local interrupts.
- 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.
- Spin
Lock - A non-sleeping mutual-exclusion lock.
- Spin
Lock Guard - A guard returned by any
SpinLockacquisition method. - Spin
RwLock - A non-sleeping read-write lock.
- Spin
RwLock Read Guard - A read guard returned by
SpinRwLock. - Spin
RwLock Write Guard - A write guard returned by
SpinRwLock.
Functions§
- dump_
lockdep_ trace - Dumps the runtime lockdep trace buffer.
- set_
lockdep_ trace_ enabled - Enables or disables runtime lockdep trace recording.
Type Aliases§
- 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 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.