Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/lib/lockdep/
H A 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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A 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
H A Dseqlock.h185 #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), \
/OK3568_Linux_fs/kernel/tools/lib/lockdep/include/liblockdep/
H A 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()
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Dcache.c118 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 …]
/OK3568_Linux_fs/kernel/arch/arc/include/asm/
H A 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()
/OK3568_Linux_fs/kernel/kernel/locking/
H A Dspinlock.c127 BUILD_LOCK_OPS(read, rwlock);
128 BUILD_LOCK_OPS(write, rwlock);
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_uprobe.c262 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()
H A Dtrace_probe.h226 rwlock_t rwlock; member
/OK3568_Linux_fs/kernel/Documentation/locking/
H A Dlocktorture.rst59 read/write lock() and unlock() rwlock pairs.
63 rwlock pairs.
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dnetdevices.rst226 Synchronization: dev_base_lock rwlock.
227 Context: nominally process, but don't sleep inside an rwlock
/OK3568_Linux_fs/kernel/lib/
H A Dlocking-selftest.c141 init_class_##class(raw_spinlock_t *lock, rwlock_t *rwlock, \
145 rwlock_init(rwlock); \
H A DKconfig.debug1311 This feature will check whether any held lock (spinlock, rwlock,
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/texinfo/texinfo/
H A D0001-gnulib-Update.patch193 gnulib/lib/windows-rwlock.c | 16 +-
194 gnulib/lib/windows-rwlock.h | 16 +-
7669 --- a/gnulib/lib/windows-rwlock.c
7670 +++ b/gnulib/lib/windows-rwlock.c
7698 --- a/gnulib/lib/windows-rwlock.h
7699 +++ b/gnulib/lib/windows-rwlock.h
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/share/info/
H A Dlibc.info-14031rwlock’ associated with the identifier, and guard _all_ calls to
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/share/info/
H A Dlibc.info-14031rwlock’ associated with the identifier, and guard _all_ calls to
/OK3568_Linux_fs/kernel/
H A DMAINTAINERS10293 F: include/linux/rwlock*.h
/OK3568_Linux_fs/external/xserver/
H A DChangeLog93188 XQuartz: Use a rwlock instead of a mutex to protect window_hash in the pthread case
93190 Concurrent reads are acceptable, so using an rwlock should be better.