/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/tools/perf/Documentation/ |
D | perf-lock.txt | 189 semaphore, spinlock, rwlock, rwlock:R, rwlock:W, rwsem, rwsem:R, rwsem:W, 190 rtmutex, rwlock-rt, rwlock-rt:R, rwlock-rt:W, pcpu-sem, pcpu-sem:R, pcpu-sem:W,
|
/linux-6.6.21/kernel/trace/ |
D | trace_uprobe.c | 254 rwlock_init(&filter->rwlock); in NOKPROBE_SYMBOL() 1225 write_lock(&filter->rwlock); in trace_uprobe_filter_remove() 1235 write_unlock(&filter->rwlock); in trace_uprobe_filter_remove() 1246 write_lock(&filter->rwlock); in trace_uprobe_filter_add() 1264 write_unlock(&filter->rwlock); in trace_uprobe_filter_add() 1329 read_lock(&filter->rwlock); in uprobe_perf_filter() 1331 read_unlock(&filter->rwlock); in uprobe_perf_filter()
|
D | trace_probe.h | 236 rwlock_t rwlock; member
|
/linux-6.6.21/Documentation/locking/ |
D | locktorture.rst | 59 read/write lock() and unlock() rwlock pairs. 63 rwlock pairs.
|
/linux-6.6.21/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-6.6.21/Documentation/virt/kvm/ |
D | locking.rst | 46 - kvm->arch.mmu_lock is an rwlock. kvm->arch.tdp_mmu_pages_lock and
|
/linux-6.6.21/lib/ |
D | locking-selftest.c | 156 init_class_##class(spinlock_t *lock, rwlock_t *rwlock, \ 160 rwlock_init(rwlock); \
|
D | Kconfig.debug | 1436 This feature will check whether any held lock (spinlock, rwlock,
|
/linux-6.6.21/ |
D | MAINTAINERS | 12308 F: include/linux/rwlock*.h
|