Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/tools/lib/lockdep/
Dpreload.c67 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 …]
/Linux-v5.4/tools/lib/lockdep/include/liblockdep/
Drwlock.h9 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()
/Linux-v5.4/include/linux/
Drwlock.h50 # 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
/Linux-v5.4/arch/arc/include/asm/
Dspinlock.h101 : [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()
/Linux-v5.4/drivers/infiniband/core/
Dcache.c119 rwlock_t rwlock; member
243 write_lock_irq(&table->rwlock); in free_gid_entry_locked()
254 write_unlock_irq(&table->rwlock); in free_gid_entry_locked()
328 write_lock_irq(&table->rwlock); in store_gid_entry()
330 write_unlock_irq(&table->rwlock); in store_gid_entry()
390 write_lock_irq(&table->rwlock); in del_gid()
398 write_unlock_irq(&table->rwlock); in del_gid()
702 read_lock_irqsave(&table->rwlock, flags); in rdma_find_gid_by_port()
707 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port()
711 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port()
[all …]
/Linux-v5.4/kernel/locking/
Dspinlock.c127 BUILD_LOCK_OPS(read, rwlock);
128 BUILD_LOCK_OPS(write, rwlock);
/Linux-v5.4/kernel/trace/
Dtrace_uprobe.c38 rwlock_t rwlock; member
269 rwlock_init(&filter->rwlock); in NOKPROBE_SYMBOL()
1217 write_lock(&tu->filter.rwlock); in uprobe_perf_close()
1227 write_unlock(&tu->filter.rwlock); in uprobe_perf_close()
1240 write_lock(&tu->filter.rwlock); in uprobe_perf_open()
1258 write_unlock(&tu->filter.rwlock); in uprobe_perf_open()
1297 read_lock(&tu->filter.rwlock); in uprobe_perf_filter()
1299 read_unlock(&tu->filter.rwlock); in uprobe_perf_filter()
/Linux-v5.4/Documentation/networking/
Dnetdevices.txt64 Synchronization: dev_base_lock rwlock.
65 Context: nominally process, but don't sleep inside an rwlock
/Linux-v5.4/Documentation/locking/
Dlocktorture.rst59 read/write lock() and unlock() rwlock pairs.
63 rwlock pairs.
/Linux-v5.4/lib/
Dlocking-selftest.c140 init_class_##class(raw_spinlock_t *lock, rwlock_t *rwlock, \
144 rwlock_init(rwlock); \
DKconfig.debug1195 This feature will check whether any held lock (spinlock, rwlock,
/Linux-v5.4/include/
DKbuild609 header-test- += linux/rwlock.h
/Linux-v5.4/
DMAINTAINERS9588 F: include/linux/rwlock*.h