/linux-5.19.10/include/linux/ |
D | rwlock_rt.h | 10 extern void __rt_rwlock_init(rwlock_t *rwlock, const char *name, 13 static inline void __rt_rwlock_init(rwlock_t *rwlock, char *name, in __rt_rwlock_init() argument 27 extern void rt_read_lock(rwlock_t *rwlock); 28 extern int rt_read_trylock(rwlock_t *rwlock); 29 extern void rt_read_unlock(rwlock_t *rwlock); 30 extern void rt_write_lock(rwlock_t *rwlock); 31 extern void rt_write_lock_nested(rwlock_t *rwlock, int subclass); 32 extern int rt_write_trylock(rwlock_t *rwlock); 33 extern void rt_write_unlock(rwlock_t *rwlock); 35 static __always_inline void read_lock(rwlock_t *rwlock) in read_lock() argument [all …]
|
D | rwlock.h | 39 # define do_raw_read_lock(rwlock) do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while… argument 40 # define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock) argument 41 # define do_raw_read_unlock(rwlock) do {arch_read_unlock(&(rwlock)->raw_lock); __release(lock); } w… argument 42 # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } whi… argument 43 # define do_raw_write_trylock(rwlock) arch_write_trylock(&(rwlock)->raw_lock) argument 44 # define do_raw_write_unlock(rwlock) do {arch_write_unlock(&(rwlock)->raw_lock); __release(lock); }… argument
|
D | seqlock.h | 184 #define seqcount_rwlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, rwlock) 276 SEQCOUNT_LOCKNAME(rwlock, rwlock_t, __SEQ_RT, s->lock, read, read_lock(s->l… 303 __seqprop_case((s), rwlock, prop), \
|
/linux-5.19.10/kernel/locking/ |
D | spinlock_rt.c | 194 int __sched rt_read_trylock(rwlock_t *rwlock) in rt_read_trylock() argument 198 ret = rwbase_read_trylock(&rwlock->rwbase); in rt_read_trylock() 200 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock() 208 int __sched rt_write_trylock(rwlock_t *rwlock) in rt_write_trylock() argument 212 ret = rwbase_write_trylock(&rwlock->rwbase); in rt_write_trylock() 214 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock() 222 void __sched rt_read_lock(rwlock_t *rwlock) in rt_read_lock() argument 225 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock() 226 rwbase_read_lock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_read_lock() 232 void __sched rt_write_lock(rwlock_t *rwlock) in rt_write_lock() argument [all …]
|
D | spinlock.c | 129 BUILD_LOCK_OPS(read, rwlock); 130 BUILD_LOCK_OPS(write, rwlock);
|
/linux-5.19.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() 704 read_lock_irqsave(&table->rwlock, flags); in rdma_find_gid_by_port() 709 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port() 713 read_unlock_irqrestore(&table->rwlock, flags); in rdma_find_gid_by_port() [all …]
|
/linux-5.19.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()
|
/linux-5.19.10/kernel/trace/ |
D | trace_uprobe.c | 260 rwlock_init(&filter->rwlock); in NOKPROBE_SYMBOL() 1223 write_lock(&filter->rwlock); in trace_uprobe_filter_remove() 1233 write_unlock(&filter->rwlock); in trace_uprobe_filter_remove() 1244 write_lock(&filter->rwlock); in trace_uprobe_filter_add() 1262 write_unlock(&filter->rwlock); in trace_uprobe_filter_add() 1327 read_lock(&filter->rwlock); in uprobe_perf_filter() 1329 read_unlock(&filter->rwlock); in uprobe_perf_filter()
|
D | trace_probe.h | 227 rwlock_t rwlock; member
|
/linux-5.19.10/Documentation/locking/ |
D | locktorture.rst | 59 read/write lock() and unlock() rwlock pairs. 63 rwlock pairs.
|
/linux-5.19.10/Documentation/networking/ |
D | netdevices.rst | 255 Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU. 256 Context: atomic (can't sleep under rwlock or RCU)
|
/linux-5.19.10/Documentation/virt/kvm/ |
D | locking.rst | 34 - kvm->arch.mmu_lock is an rwlock. kvm->arch.tdp_mmu_pages_lock and
|
/linux-5.19.10/lib/ |
D | locking-selftest.c | 156 init_class_##class(spinlock_t *lock, rwlock_t *rwlock, \ 160 rwlock_init(rwlock); \
|
D | Kconfig.debug | 1358 This feature will check whether any held lock (spinlock, rwlock,
|
/linux-5.19.10/ |
D | MAINTAINERS | 11663 F: include/linux/rwlock*.h
|