Skip to main content

Module sync

Module sync 

Source
Expand description

Native ArceOS lock facade and ax-sync bridge provider.

Structs§

IrqSaveGuard
An RAII guard which saves and disables local interrupts while it is alive.
Mutex
A sleepable mutual-exclusion primitive.
MutexGuard
An RAII guard returned by Mutex::lock and Mutex::try_lock.
PreemptGuard
An RAII guard which disables kernel preemption while it is alive.
PreemptIrqSaveGuard
An RAII guard which disables preemption and local interrupts.
RawIrqSaveMutex
A raw spin lock that disables kernel preemption and local IRQs while held, mirroring SpinLock::lock_irqsave but exposed as a lock_api::RawMutex for use with foreign generic code.
RawMutex
The raw ownership and wait-queue state of a Mutex.
SpinLock
A non-sleeping mutual-exclusion lock.
SpinRwLock
A non-sleeping read-write lock with acquisition-site context policy.

Traits§

LockdepMutexExt
Lockdep extension for structurally nested sleepable mutex acquisitions.

Functions§

dump_lockdep_trace
No-op trace dump for builds without lockdep.
set_lockdep_trace_enabled
No-op trace switch for builds without lockdep.

Type Aliases§

LockSubclass
A lockdep subclass identifier when lockdep is disabled.
RawSpinLockGuard
A guard returned by SpinLock::lock_raw.
RawSpinRwLockReadGuard
A raw read guard.
RawSpinRwLockWriteGuard
A raw write guard.
SpinLockGuard
A guard returned by SpinLock::lock.
SpinLockIrqSaveGuard
A guard returned by SpinLock::lock_irqsave.
SpinRwLockIrqSaveReadGuard
An IRQ-save read guard.
SpinRwLockIrqSaveWriteGuard
An IRQ-save write guard.
SpinRwLockReadGuard
A read guard returned by SpinRwLock::read.
SpinRwLockWriteGuard
A write guard returned by SpinRwLock::write.