Expand description
A kernel spinlock.
This module allows Rust code to use the kernel’s spinlock_t.
Macros§
- new_
spinlock - Creates a
SpinLockinitialiser with the given name and a newly-created lock class. - new_
spinlock_ irq - Creates a
SpinLockIrqinitialiser with the given name and a newly-created lock class.
Structs§
- Spin
Lock Backend - A kernel
spinlock_tlock backend. - Spin
Lock IrqBackend - A kernel
spinlock_tlock backend that can only be acquired in interrupt disabled contexts.
Type Aliases§
- Spin
Lock - A spinlock.
- Spin
Lock Guard - A
Guardacquired from locking aSpinLock. - Spin
Lock Irq - A variant of
SpinLockthat ensures interrupts are disabled in the critical section. - Spin
Lock IrqGuard - A
Guardacquired from locking aSpinLockIrqusinglock().