Skip to main content

Module spinlock

Module spinlock 

Source
Expand description

A kernel spinlock.

This module allows Rust code to use the kernel’s spinlock_t.

Macros§

new_spinlock
Creates a SpinLock initialiser with the given name and a newly-created lock class.
new_spinlock_irq
Creates a SpinLockIrq initialiser with the given name and a newly-created lock class.

Structs§

SpinLockBackend
A kernel spinlock_t lock backend.
SpinLockIrqBackend
A kernel spinlock_t lock backend that can only be acquired in interrupt disabled contexts.

Type Aliases§

SpinLock
A spinlock.
SpinLockGuard
A Guard acquired from locking a SpinLock.
SpinLockIrq
A variant of SpinLock that ensures interrupts are disabled in the critical section.
SpinLockIrqGuard
A Guard acquired from locking a SpinLockIrq using lock().