Home
last modified time | relevance | path

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

123456

/linux/include/linux/
A Drwlock_api_smp.h28 int __lockfunc _raw_read_trylock(rwlock_t *lock);
29 int __lockfunc _raw_write_trylock(rwlock_t *lock);
117 static inline int __raw_read_trylock(rwlock_t *lock) in __raw_read_trylock()
128 static inline int __raw_write_trylock(rwlock_t *lock) in __raw_write_trylock()
146 static inline void __raw_read_lock(rwlock_t *lock) in __raw_read_lock()
164 static inline void __raw_read_lock_irq(rwlock_t *lock) in __raw_read_lock_irq()
172 static inline void __raw_read_lock_bh(rwlock_t *lock) in __raw_read_lock_bh()
198 static inline void __raw_write_lock_bh(rwlock_t *lock) in __raw_write_lock_bh()
205 static inline void __raw_write_lock(rwlock_t *lock) in __raw_write_lock()
214 static inline void __raw_write_unlock(rwlock_t *lock) in __raw_write_unlock()
[all …]
A Drwlock_rt.h10 extern void __rt_rwlock_init(rwlock_t *rwlock, const char *name,
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 int rt_write_trylock(rwlock_t *rwlock);
32 extern void rt_write_unlock(rwlock_t *rwlock);
34 static __always_inline void read_lock(rwlock_t *rwlock) in read_lock()
39 static __always_inline void read_lock_bh(rwlock_t *rwlock) in read_lock_bh()
59 static __always_inline void read_unlock(rwlock_t *rwlock) in read_unlock()
[all …]
A 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)
A 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);
A 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 */
A Datalk.h138 extern rwlock_t atalk_sockets_lock;
141 extern rwlock_t atalk_routes_lock;
144 extern rwlock_t atalk_interfaces_lock;
/linux/kernel/locking/
A Dspinlock.c218 int __lockfunc _raw_read_trylock(rwlock_t *lock) in _raw_read_trylock()
226 void __lockfunc _raw_read_lock(rwlock_t *lock) in _raw_read_lock()
242 void __lockfunc _raw_read_lock_irq(rwlock_t *lock) in _raw_read_lock_irq()
250 void __lockfunc _raw_read_lock_bh(rwlock_t *lock) in _raw_read_lock_bh()
258 void __lockfunc _raw_read_unlock(rwlock_t *lock) in _raw_read_unlock()
282 void __lockfunc _raw_read_unlock_bh(rwlock_t *lock) in _raw_read_unlock_bh()
290 int __lockfunc _raw_write_trylock(rwlock_t *lock) in _raw_write_trylock()
298 void __lockfunc _raw_write_lock(rwlock_t *lock) in _raw_write_lock()
314 void __lockfunc _raw_write_lock_irq(rwlock_t *lock) in _raw_write_lock_irq()
322 void __lockfunc _raw_write_lock_bh(rwlock_t *lock) in _raw_write_lock_bh()
[all …]
A 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 …]
A 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()
242 void __sched rt_read_unlock(rwlock_t *rwlock) in rt_read_unlock()
251 void __sched rt_write_unlock(rwlock_t *rwlock) in rt_write_unlock()
260 int __sched rt_rwlock_is_contended(rwlock_t *rwlock) in rt_rwlock_is_contended()
267 void __rt_rwlock_init(rwlock_t *rwlock, const char *name, in __rt_rwlock_init()
/linux/lib/
A 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()
477 test_kernel_ptr(lock_rwlock_ptr, sizeof(rwlock_t)) || in test_lockup_init()
488 offsetof(rwlock_t, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
502 offsetof(rwlock_t, magic), in test_lockup_init()
/linux/Documentation/locking/
A Dlocktypes.rst50 - rwlock_t
74 - rwlock_t
110 and rwlock_t to be implemented via RT-mutexes.
299 rwlock_t chapter
302 rwlock_t is a multiple readers and single writer lock mechanism.
308 rwlock_t and PREEMPT_RT
311 PREEMPT_RT kernels map rwlock_t to a separate rt_mutex-based
314 - All the spinlock_t changes also apply to rwlock_t.
399 spinlock_t and rwlock_t
413 Same applies to rwlock_t and the _irqsave() suffix variants.
[all …]
/linux/drivers/s390/scsi/
A 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/include/net/
A Dx25.h317 extern rwlock_t x25_list_lock;
319 extern rwlock_t x25_route_list_lock;
321 extern rwlock_t x25_forward_list_lock;
323 extern rwlock_t x25_neigh_list_lock;
/linux/net/atm/
A Dmpc.h24 rwlock_t ingress_lock;
28 rwlock_t egress_lock;
/linux/net/smc/
A Dsmc_pnet.h32 rwlock_t lock;
38 rwlock_t lock;
/linux/include/drm/
A Ddrm_vma_manager.h53 rwlock_t vm_lock;
60 rwlock_t vm_lock;
/linux/fs/ksmbd/
A Dvfs_cache.h49 rwlock_t m_lock;
123 rwlock_t lock;
/linux/drivers/virt/acrn/
A Dacrn_drv.h126 rwlock_t range_lock;
139 extern rwlock_t acrn_vm_list_lock;
/linux/net/rxrpc/
A Dar-internal.h71 rwlock_t call_lock; /* Lock for ->calls */
77 rwlock_t conn_lock; /* Lock for ->conn_proc_list, ->service_conns */
141 rwlock_t recvmsg_lock; /* Lock for recvmsg_q */
147 rwlock_t call_lock; /* lock for calls */
294 rwlock_t services_lock; /* lock for services list */
607 rwlock_t state_lock; /* lock for state transition */
/linux/fs/afs/
A Dinternal.h309 rwlock_t sysnames_lock;
398 rwlock_t vl_servers_lock; /* Lock on vl_servers */
416 rwlock_t lock; /* Lock on addresses */
459 rwlock_t lock;
531 rwlock_t fs_lock; /* access lock */
566 rwlock_t lock;
596 rwlock_t servers_lock; /* Lock for ->servers */
600 rwlock_t cb_v_break_lock;
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dsmt.h68 rwlock_t lock;
A Dclip_tbl.h28 rwlock_t lock;
/linux/include/sound/
A Dseq_virmidi.h49 rwlock_t filelist_lock;
/linux/arch/powerpc/include/asm/
A Ddtl.h38 extern rwlock_t dtl_access_lock;
/linux/fs/ocfs2/cluster/
A Dnodemanager.h44 rwlock_t cl_nodes_lock;

Completed in 45 milliseconds

123456