Home
last modified time | relevance | path

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

/linux-5.19.10/include/linux/
Drwlock_rt.h10 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 …]
Drwlock.h39 # 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
Dseqlock.h184 #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/
Dspinlock_rt.c194 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 …]
Dspinlock.c129 BUILD_LOCK_OPS(read, rwlock);
130 BUILD_LOCK_OPS(write, rwlock);
/linux-5.19.10/drivers/infiniband/core/
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()
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/
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-5.19.10/kernel/trace/
Dtrace_uprobe.c260 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()
Dtrace_probe.h227 rwlock_t rwlock; member
/linux-5.19.10/Documentation/locking/
Dlocktorture.rst59 read/write lock() and unlock() rwlock pairs.
63 rwlock pairs.
/linux-5.19.10/Documentation/networking/
Dnetdevices.rst255 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/
Dlocking.rst34 - kvm->arch.mmu_lock is an rwlock. kvm->arch.tdp_mmu_pages_lock and
/linux-5.19.10/lib/
Dlocking-selftest.c156 init_class_##class(spinlock_t *lock, rwlock_t *rwlock, \
160 rwlock_init(rwlock); \
DKconfig.debug1358 This feature will check whether any held lock (spinlock, rwlock,
/linux-5.19.10/
DMAINTAINERS11663 F: include/linux/rwlock*.h