/linux/include/linux/ |
A D | rwlock_api_smp.h | 28 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 D | rwlock_rt.h | 10 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 D | rwlock_types.h | 34 } 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 D | rwlock.h | 18 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 D | hp_sdc.h | 262 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 D | atalk.h | 138 extern rwlock_t atalk_sockets_lock; 141 extern rwlock_t atalk_routes_lock; 144 extern rwlock_t atalk_interfaces_lock;
|
/linux/kernel/locking/ |
A D | spinlock.c | 218 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 D | spinlock_debug.c | 35 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 D | spinlock_rt.c | 194 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 D | test_lockup.c | 225 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 D | locktypes.rst | 50 - 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 D | zfcp_def.h | 165 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 D | x25.h | 317 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 D | mpc.h | 24 rwlock_t ingress_lock; 28 rwlock_t egress_lock;
|
/linux/net/smc/ |
A D | smc_pnet.h | 32 rwlock_t lock; 38 rwlock_t lock;
|
/linux/include/drm/ |
A D | drm_vma_manager.h | 53 rwlock_t vm_lock; 60 rwlock_t vm_lock;
|
/linux/fs/ksmbd/ |
A D | vfs_cache.h | 49 rwlock_t m_lock; 123 rwlock_t lock;
|
/linux/drivers/virt/acrn/ |
A D | acrn_drv.h | 126 rwlock_t range_lock; 139 extern rwlock_t acrn_vm_list_lock;
|
/linux/net/rxrpc/ |
A D | ar-internal.h | 71 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 D | internal.h | 309 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 D | smt.h | 68 rwlock_t lock;
|
A D | clip_tbl.h | 28 rwlock_t lock;
|
/linux/include/sound/ |
A D | seq_virmidi.h | 49 rwlock_t filelist_lock;
|
/linux/arch/powerpc/include/asm/ |
A D | dtl.h | 38 extern rwlock_t dtl_access_lock;
|
/linux/fs/ocfs2/cluster/ |
A D | nodemanager.h | 44 rwlock_t cl_nodes_lock;
|