结构体 | |
struct | Spinlock |
类型定义 | |
typedef struct Spinlock | SPIN_LOCK_S |
函数 | |
VOID | ArchSpinLock (size_t *lock) |
VOID | ArchSpinUnlock (size_t *lock) |
INT32 | ArchSpinTrylock (size_t *lock) |
VOID | LOS_SpinLock (SPIN_LOCK_S *lock) |
Lock the spinlock. 更多... | |
INT32 | LOS_SpinTrylock (SPIN_LOCK_S *lock) |
Trying lock the spinlock. 更多... | |
VOID | LOS_SpinUnlock (SPIN_LOCK_S *lock) |
Unlock the spinlock. 更多... | |
VOID | LOS_SpinLockSave (SPIN_LOCK_S *lock, UINT32 *intSave) |
Lock the spinlock and disable all interrupts. 更多... | |
VOID | LOS_SpinUnlockRestore (SPIN_LOCK_S *lock, UINT32 intSave) |
Unlock the spinlock and restore interrupt flag. 更多... | |
BOOL | LOS_SpinHeld (const SPIN_LOCK_S *lock) |
Check if holding the spinlock. 更多... | |
VOID | LOS_SpinInit (SPIN_LOCK_S *lock) |
Spinlock initialization. 更多... | |
typedef struct Spinlock SPIN_LOCK_S |
VOID ArchSpinLock | ( | size_t * | lock | ) |
VOID ArchSpinUnlock | ( | size_t * | lock | ) |
BOOL LOS_SpinHeld | ( | const SPIN_LOCK_S * | lock | ) |
Check if holding the spinlock.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
TRUE | Holding the spinlock. |
FALSE | Not Holding the spinlock. |
在文件 los_spinlock.h 第 249 行定义.
VOID LOS_SpinInit | ( | SPIN_LOCK_S * | lock | ) |
Spinlock initialization.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
None. |
在文件 los_spinlock.h 第 255 行定义.
VOID LOS_SpinLock | ( | SPIN_LOCK_S * | lock | ) |
Lock the spinlock.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
None. |
在文件 los_spinlock.h 第 221 行定义.
VOID LOS_SpinLockSave | ( | SPIN_LOCK_S * | lock, |
UINT32 * | intSave | ||
) |
Lock the spinlock and disable all interrupts.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
intSave | [OUT] Type UINT32 Saved interrupt flag for latter restored. |
None. |
在文件 los_spinlock.h 第 237 行定义.
INT32 LOS_SpinTrylock | ( | SPIN_LOCK_S * | lock | ) |
Trying lock the spinlock.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
LOS_OK | Got the spinlock. |
LOS_NOK | Not getting the spinlock. |
在文件 los_spinlock.h 第 226 行定义.
VOID LOS_SpinUnlock | ( | SPIN_LOCK_S * | lock | ) |
Unlock the spinlock.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
None. |
在文件 los_spinlock.h 第 232 行定义.
VOID LOS_SpinUnlockRestore | ( | SPIN_LOCK_S * | lock, |
UINT32 | intSave | ||
) |
Unlock the spinlock and restore interrupt flag.
lock | [IN] Type SPIN_LOCK_S spinlock pointer. |
intSave | [IN] Type UINT32 Interrupt flag to be restored. |
None. |
在文件 los_spinlock.h 第 243 行定义.