Home
last modified time | relevance | path

Searched refs:OS_RWLOCK_MAGIC (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/kernel/base/ipc/
Dlos_rwlock.c45 if ((rwlock != NULL) && ((rwlock->magic & RWLOCK_COUNT_MASK) == OS_RWLOCK_MAGIC)) { in LOS_RwlockIsValid()
61 if ((rwlock->magic & RWLOCK_COUNT_MASK) == OS_RWLOCK_MAGIC) { in LOS_RwlockInit()
70 rwlock->magic = OS_RWLOCK_MAGIC; in LOS_RwlockInit()
84 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in LOS_RwlockDestroy()
217 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in OsRwlockRdUnsafe()
226 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in OsRwlockTryRdUnsafe()
255 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in OsRwlockWrUnsafe()
264 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in OsRwlockTryWrUnsafe()
411 if ((rwlock->magic & RWLOCK_COUNT_MASK) != OS_RWLOCK_MAGIC) { in OsRwlockUnlockUnsafe()
/kernel/liteos_a/kernel/base/include/
Dlos_rwlock_pri.h44 #define OS_RWLOCK_MAGIC 0xEFDCAU macro