/kernel/liteos_a/kernel/base/ipc/ |
D | los_rwlock.c | 43 BOOL LOS_RwlockIsValid(const LosRwlock *rwlock) in LOS_RwlockIsValid() argument 45 if ((rwlock != NULL) && ((rwlock->magic & RWLOCK_COUNT_MASK) == OS_RWLOCK_MAGIC)) { in LOS_RwlockIsValid() 52 UINT32 LOS_RwlockInit(LosRwlock *rwlock) in LOS_RwlockInit() argument 56 if (rwlock == NULL) { in LOS_RwlockInit() 61 if ((rwlock->magic & RWLOCK_COUNT_MASK) == OS_RWLOCK_MAGIC) { in LOS_RwlockInit() 66 rwlock->rwCount = 0; in LOS_RwlockInit() 67 rwlock->writeOwner = NULL; in LOS_RwlockInit() 68 LOS_ListInit(&(rwlock->readList)); in LOS_RwlockInit() 69 LOS_ListInit(&(rwlock->writeList)); in LOS_RwlockInit() 70 rwlock->magic = OS_RWLOCK_MAGIC; in LOS_RwlockInit() [all …]
|
/kernel/linux/linux-5.10/tools/lib/lockdep/ |
D | preload.c | 67 extern int __pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr); 68 extern int __pthread_rwlock_destroy(pthread_rwlock_t *rwlock); 69 extern int __pthread_rwlock_wrlock(pthread_rwlock_t *rwlock); 70 extern int __pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock); 71 extern int __pthread_rwlock_rdlock(pthread_rwlock_t *rwlock); 72 extern int __pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock); 73 extern int __pthread_rwlock_unlock(pthread_rwlock_t *rwlock); 84 static int (*ll_pthread_rwlock_init)(pthread_rwlock_t *rwlock, 86 static int (*ll_pthread_rwlock_destroy)(pthread_rwlock_t *rwlock) = __pthread_rwlock_destroy; 87 static int (*ll_pthread_rwlock_rdlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_rdlock; [all …]
|
/kernel/liteos_a/kernel/include/ |
D | los_rwlock.h | 61 extern BOOL LOS_RwlockIsValid(const LosRwlock *rwlock); 79 extern UINT32 LOS_RwlockInit(LosRwlock *rwlock); 104 extern UINT32 LOS_RwlockDestroy(LosRwlock *rwlock); 138 extern UINT32 LOS_RwlockRdLock(LosRwlock *rwlock, UINT32 timeout); 172 extern UINT32 LOS_RwlockTryRdLock(LosRwlock *rwlock); 206 extern UINT32 LOS_RwlockWrLock(LosRwlock *rwlock, UINT32 timeout); 240 extern UINT32 LOS_RwlockTryWrLock(LosRwlock *rwlock); 278 extern UINT32 LOS_RwlockUnLock(LosRwlock *rwlock);
|
/kernel/linux/linux-5.10/tools/lib/lockdep/include/liblockdep/ |
D | rwlock.h | 9 pthread_rwlock_t rwlock; member 17 .rwlock = PTHREAD_RWLOCK_INITIALIZER, \ 28 return pthread_rwlock_init(&lock->rwlock, attr); in __rwlock_init() 41 return pthread_rwlock_rdlock(&lock->rwlock); in liblockdep_pthread_rwlock_rdlock() 48 return pthread_rwlock_unlock(&lock->rwlock); in liblockdep_pthread_rwlock_unlock() 54 return pthread_rwlock_wrlock(&lock->rwlock); in liblockdep_pthread_rwlock_wrlock() 60 return pthread_rwlock_tryrdlock(&lock->rwlock) == 0 ? 1 : 0; in liblockdep_pthread_rwlock_tryrdlock() 66 return pthread_rwlock_trywrlock(&lock->rwlock) == 0 ? 1 : 0; in liblockdep_pthread_rwlock_trywrlock() 71 return pthread_rwlock_destroy(&lock->rwlock); in liblockdep_rwlock_destroy()
|
/kernel/linux/linux-5.10/include/linux/ |
D | rwlock.h | 50 # define do_raw_read_lock(rwlock) do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while… argument 53 # define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock) argument 54 # define do_raw_read_unlock(rwlock) do {arch_read_unlock(&(rwlock)->raw_lock); __release(lock); } w… argument 55 # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } whi… argument 58 # define do_raw_write_trylock(rwlock) arch_write_trylock(&(rwlock)->raw_lock) argument 59 # define do_raw_write_unlock(rwlock) do {arch_write_unlock(&(rwlock)->raw_lock); __release(lock); }… argument
|
D | seqlock.h | 185 #define seqcount_rwlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, rwlock); 278 SEQCOUNT_LOCKNAME(rwlock, rwlock_t, __SEQ_RT, s->lock, read, read_lock(s->l… 306 __seqprop_case((s), rwlock, prop), \
|
/kernel/liteos_a/kernel/base/include/ |
D | los_rwlock_pri.h | 54 extern UINT32 OsRwlockRdUnsafe(LosRwlock *rwlock, UINT32 timeout); 55 extern UINT32 OsRwlockTryRdUnsafe(LosRwlock *rwlock, UINT32 timeout); 56 extern UINT32 OsRwlockWrUnsafe(LosRwlock *rwlock, UINT32 timeout); 57 extern UINT32 OsRwlockTryWrUnsafe(LosRwlock *rwlock, UINT32 timeout); 58 extern UINT32 OsRwlockUnlockUnsafe(LosRwlock *rwlock, BOOL *needSched);
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | cache.c | 118 rwlock_t rwlock; member 246 write_lock_irq(&table->rwlock); in free_gid_entry_locked() 257 write_unlock_irq(&table->rwlock); in free_gid_entry_locked() 331 write_lock_irq(&table->rwlock); in store_gid_entry() 333 write_unlock_irq(&table->rwlock); in store_gid_entry() 393 write_lock_irq(&table->rwlock); in del_gid() 401 write_unlock_irq(&table->rwlock); in del_gid() 705 read_lock_irqsave(&table->rwlock, flags); in rdma_find_gid_by_port() 710 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port() 714 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port() [all …]
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/ |
D | Makefile | 12 -I $(LITEOSTESTTOPDIR)/kernel/sample/kernel_base/ipc/rwlock 14 SRC_MODULES := sem event queue mux rwlock 17 SMP_MODULES := sem/smp event/smp queue/smp mux/smp rwlock/smp 29 SMOKE_MODULES := sem/smoke event/smoke queue/smoke mux/smoke rwlock/smoke
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | spinlock.h | 101 : [rwlock] "r" (&(rw->counter)), in arch_read_lock() 125 : [rwlock] "r" (&(rw->counter)), in arch_read_trylock() 158 : [rwlock] "r" (&(rw->counter)), in arch_write_lock() 183 : [rwlock] "r" (&(rw->counter)), in arch_write_trylock() 209 : [rwlock] "r" (&(rw->counter)) in arch_read_unlock()
|
/kernel/liteos_a/testsuites/unittest/process/lock/rwlock/ |
D | config.gni | 31 rwlock_include_dirs = [ "$TEST_UNITTEST_DIR/process/lock/rwlock" ] 34 [ "$TEST_UNITTEST_DIR/process/lock/rwlock/process_rwlock_test.cpp" ] 37 "$TEST_UNITTEST_DIR/process/lock/rwlock/smoke/pthread_rwlock_test_001.cpp", 41 "$TEST_UNITTEST_DIR/process/lock/rwlock/full/pthread_rwlock_test_002.cpp",
|
/kernel/linux/linux-5.10/kernel/locking/ |
D | spinlock.c | 127 BUILD_LOCK_OPS(read, rwlock); 128 BUILD_LOCK_OPS(write, rwlock);
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_uprobe.c | 262 rwlock_init(&filter->rwlock); in NOKPROBE_SYMBOL() 1230 write_lock(&filter->rwlock); in trace_uprobe_filter_remove() 1240 write_unlock(&filter->rwlock); in trace_uprobe_filter_remove() 1251 write_lock(&filter->rwlock); in trace_uprobe_filter_add() 1269 write_unlock(&filter->rwlock); in trace_uprobe_filter_add() 1336 read_lock(&filter->rwlock); in uprobe_perf_filter() 1338 read_unlock(&filter->rwlock); in uprobe_perf_filter()
|
D | trace_probe.h | 226 rwlock_t rwlock; member
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | netdevices.rst | 67 Synchronization: dev_base_lock rwlock. 68 Context: nominally process, but don't sleep inside an rwlock
|
/kernel/liteos_a/testsuites/unittest/process/lock/spinlock/smoke/ |
D | pthread_spinlock_test_001.cpp | 133 pthread_rwlockattr_t rwlock; in Testcase() local
|
/kernel/linux/linux-5.10/Documentation/locking/ |
D | locktorture.rst | 59 read/write lock() and unlock() rwlock pairs. 63 rwlock pairs.
|
/kernel/liteos_a/testsuites/unittest/process/lock/ |
D | config.gni | 53 import("./rwlock/config.gni")
|
/kernel/liteos_a/testsuites/unittest/process/lock/rwlock/smoke/ |
D | pthread_rwlock_test_001.cpp | 226 pthread_rwlockattr_t rwlock; in Testcase() local
|
/kernel/liteos_a/testsuites/unittest/process/lock/rwlock/full/ |
D | pthread_rwlock_test_002.cpp | 226 pthread_rwlockattr_t rwlock; in PthreadRwlockTest() local
|
/kernel/linux/linux-5.10/lib/ |
D | locking-selftest.c | 141 init_class_##class(raw_spinlock_t *lock, rwlock_t *rwlock, \ 145 rwlock_init(rwlock); \
|
D | Kconfig.debug | 1293 This feature will check whether any held lock (spinlock, rwlock,
|
/kernel/linux/linux-5.10/ |
D | MAINTAINERS | 10268 F: include/linux/rwlock*.h
|