Spinlock initialization
|
LOS_SpinInit
|
Dynamically initializes a spinlock.
|
SPIN_LOCK_INIT
|
Statically initializes a spinlock.
|
Spinlock request and release
|
LOS_SpinLock
|
Requests a specified spinlock. If the spinlock cannot be obtained, the system waits in a loop.
|
LOS_SpinTrylock
|
Attempts to request a specified spinlock. If the spinlock cannot be obtained, a failure message is returned, and the system does not wait in a loop.
|
LOS_SpinUnlock
|
Releases a spinlock.
|
Spinlock request and release (with disabled interrupt)
|
LOS_SpinLockSave
|
Requests a spinlock after the interrupt is disabled.
|
LOS_SpinUnlockRestore
|
Releases a spinlock and restores the interrupt.
|
Spinlock holding status
|
LOS_SpinHeld
|
Checks whether a spinlock is held.
|