Home
last modified time | relevance | path

Searched refs:rwlock_t (Results 1 – 25 of 140) sorted by relevance

123456

/Linux-v6.6/include/linux/
Drwlock_api_smp.h18 void __lockfunc _raw_read_lock(rwlock_t *lock) __acquires(lock);
19 void __lockfunc _raw_write_lock(rwlock_t *lock) __acquires(lock);
20 void __lockfunc _raw_write_lock_nested(rwlock_t *lock, int subclass) __acquires(lock);
21 void __lockfunc _raw_read_lock_bh(rwlock_t *lock) __acquires(lock);
22 void __lockfunc _raw_write_lock_bh(rwlock_t *lock) __acquires(lock);
23 void __lockfunc _raw_read_lock_irq(rwlock_t *lock) __acquires(lock);
24 void __lockfunc _raw_write_lock_irq(rwlock_t *lock) __acquires(lock);
25 unsigned long __lockfunc _raw_read_lock_irqsave(rwlock_t *lock)
27 unsigned long __lockfunc _raw_write_lock_irqsave(rwlock_t *lock)
29 int __lockfunc _raw_read_trylock(rwlock_t *lock);
[all …]
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()
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()
[all …]
Drwlock_types.h34 } rwlock_t; typedef
40 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
47 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
51 #define DEFINE_RWLOCK(x) rwlock_t x = __RW_LOCK_UNLOCKED(x)
63 } rwlock_t; typedef
74 rwlock_t name = __RW_LOCK_UNLOCKED(name)
Drwlock.h18 extern void __rwlock_init(rwlock_t *lock, const char *name,
32 extern void do_raw_read_lock(rwlock_t *lock) __acquires(lock);
33 extern int do_raw_read_trylock(rwlock_t *lock);
34 extern void do_raw_read_unlock(rwlock_t *lock) __releases(lock);
35 extern void do_raw_write_lock(rwlock_t *lock) __acquires(lock);
36 extern int do_raw_write_trylock(rwlock_t *lock);
37 extern void do_raw_write_unlock(rwlock_t *lock) __releases(lock);
Dhp_sdc.h262 rwlock_t ibf_lock;
263 rwlock_t lock; /* user/tasklet lock */
264 rwlock_t rtq_lock; /* isr/tasklet lock */
265 rwlock_t hook_lock; /* isr/user lock for handler add/del */
Datalk.h138 extern rwlock_t atalk_sockets_lock;
141 extern rwlock_t atalk_routes_lock;
144 extern rwlock_t atalk_interfaces_lock;
/Linux-v6.6/kernel/locking/
Dspinlock.c218 noinline int __lockfunc _raw_read_trylock(rwlock_t *lock) in _raw_read_trylock()
226 noinline void __lockfunc _raw_read_lock(rwlock_t *lock) in _raw_read_lock()
234 noinline unsigned long __lockfunc _raw_read_lock_irqsave(rwlock_t *lock) in _raw_read_lock_irqsave()
242 noinline void __lockfunc _raw_read_lock_irq(rwlock_t *lock) in _raw_read_lock_irq()
250 noinline void __lockfunc _raw_read_lock_bh(rwlock_t *lock) in _raw_read_lock_bh()
258 noinline void __lockfunc _raw_read_unlock(rwlock_t *lock) in _raw_read_unlock()
266 noinline void __lockfunc _raw_read_unlock_irqrestore(rwlock_t *lock, unsigned long flags) in _raw_read_unlock_irqrestore()
274 noinline void __lockfunc _raw_read_unlock_irq(rwlock_t *lock) in _raw_read_unlock_irq()
282 noinline void __lockfunc _raw_read_unlock_bh(rwlock_t *lock) in _raw_read_unlock_bh()
290 noinline int __lockfunc _raw_write_trylock(rwlock_t *lock) in _raw_write_trylock()
[all …]
Dspinlock_debug.c35 void __rwlock_init(rwlock_t *lock, const char *name, in __rwlock_init()
145 static void rwlock_bug(rwlock_t *lock, const char *msg) in rwlock_bug()
158 void do_raw_read_lock(rwlock_t *lock) in do_raw_read_lock()
164 int do_raw_read_trylock(rwlock_t *lock) in do_raw_read_trylock()
177 void do_raw_read_unlock(rwlock_t *lock) in do_raw_read_unlock()
183 static inline void debug_write_lock_before(rwlock_t *lock) in debug_write_lock_before()
191 static inline void debug_write_lock_after(rwlock_t *lock) in debug_write_lock_after()
197 static inline void debug_write_unlock(rwlock_t *lock) in debug_write_unlock()
207 void do_raw_write_lock(rwlock_t *lock) in do_raw_write_lock()
214 int do_raw_write_trylock(rwlock_t *lock) in do_raw_write_trylock()
[all …]
Dspinlock_rt.c194 int __sched rt_read_trylock(rwlock_t *rwlock) in rt_read_trylock()
208 int __sched rt_write_trylock(rwlock_t *rwlock) in rt_write_trylock()
222 void __sched rt_read_lock(rwlock_t *rwlock) in rt_read_lock()
232 void __sched rt_write_lock(rwlock_t *rwlock) in rt_write_lock()
243 void __sched rt_write_lock_nested(rwlock_t *rwlock, int subclass) in rt_write_lock_nested()
254 void __sched rt_read_unlock(rwlock_t *rwlock) in rt_read_unlock()
263 void __sched rt_write_unlock(rwlock_t *rwlock) in rt_write_unlock()
273 void __rt_rwlock_init(rwlock_t *rwlock, const char *name, in __rt_rwlock_init()
/Linux-v6.6/drivers/s390/scsi/
Dzfcp_def.h165 rwlock_t port_list_lock; /* port list lock */
169 rwlock_t abort_lock; /* Protects against SCSI
180 rwlock_t erp_lock;
212 rwlock_t unit_list_lock; /* unit list lock */
/Linux-v6.6/lib/
Dtest_lockup.c225 read_lock((rwlock_t *)lock_rwlock_ptr); in test_lock()
227 write_lock((rwlock_t *)lock_rwlock_ptr); in test_lock()
250 read_unlock((rwlock_t *)lock_rwlock_ptr); in test_unlock()
252 write_unlock((rwlock_t *)lock_rwlock_ptr); in test_unlock()
482 test_kernel_ptr(lock_rwlock_ptr, sizeof(rwlock_t)) || in test_lockup_init()
493 offsetof(rwlock_t, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
507 offsetof(rwlock_t, magic), in test_lockup_init()
/Linux-v6.6/include/net/
Dx25.h314 extern rwlock_t x25_list_lock;
316 extern rwlock_t x25_route_list_lock;
318 extern rwlock_t x25_forward_list_lock;
320 extern rwlock_t x25_neigh_list_lock;
/Linux-v6.6/Documentation/locking/
Dlocktypes.rst50 - rwlock_t
74 - rwlock_t
110 and rwlock_t to be implemented via RT-mutexes.
296 rwlock_t chapter
299 rwlock_t is a multiple readers and single writer lock mechanism.
301 Non-PREEMPT_RT kernels implement rwlock_t as a spinning lock and the
305 rwlock_t and PREEMPT_RT
308 PREEMPT_RT kernels map rwlock_t to a separate rt_mutex-based
311 - All the spinlock_t changes also apply to rwlock_t.
313 - Because an rwlock_t writer cannot grant its priority to multiple
[all …]
/Linux-v6.6/net/atm/
Dmpc.h24 rwlock_t ingress_lock;
28 rwlock_t egress_lock;
/Linux-v6.6/Documentation/translations/zh_CN/locking/
Dspinlocks.rst65 rwlock_t xxx_lock = __RW_LOCK_UNLOCKED(xxx_lock);
137 rwlock_t xxx_rw_lock;
/Linux-v6.6/include/drm/
Ddrm_vma_manager.h53 rwlock_t vm_lock;
60 rwlock_t vm_lock;
/Linux-v6.6/fs/smb/server/
Dvfs_cache.h49 rwlock_t m_lock;
119 rwlock_t lock;
/Linux-v6.6/drivers/virt/acrn/
Dacrn_drv.h128 rwlock_t range_lock;
141 extern rwlock_t acrn_vm_list_lock;
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dsmt.h68 rwlock_t lock;
Dclip_tbl.h28 rwlock_t lock;
/Linux-v6.6/arch/powerpc/include/asm/
Ddtl.h38 extern rwlock_t dtl_access_lock;
/Linux-v6.6/include/sound/
Dseq_virmidi.h49 rwlock_t filelist_lock;
/Linux-v6.6/fs/afs/
Dinternal.h308 rwlock_t sysnames_lock;
394 rwlock_t vl_servers_lock; /* Lock on vl_servers */
412 rwlock_t lock; /* Lock on addresses */
455 rwlock_t lock;
527 rwlock_t fs_lock; /* access lock */
562 rwlock_t lock;
592 rwlock_t servers_lock; /* Lock for ->servers */
596 rwlock_t cb_v_break_lock;
/Linux-v6.6/fs/ocfs2/cluster/
Dnodemanager.h44 rwlock_t cl_nodes_lock;
/Linux-v6.6/net/smc/
Dsmc_pnet.h38 rwlock_t lock;

123456