| /linux/include/linux/ |
| A D | rwsem.h | 47 struct rw_semaphore { struct 69 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 101 struct rw_semaphore name = __RWSEM_INITIALIZER(name) 128 struct rw_semaphore { struct 174 extern void down_read(struct rw_semaphore *sem); 181 extern int down_read_trylock(struct rw_semaphore *sem); 186 extern void down_write(struct rw_semaphore *sem); 192 extern int down_write_trylock(struct rw_semaphore *sem); 197 extern void up_read(struct rw_semaphore *sem); 202 extern void up_write(struct rw_semaphore *sem); [all …]
|
| A D | rtnetlink.h | 41 extern struct rw_semaphore pernet_ops_rwsem; 42 extern struct rw_semaphore net_rwsem;
|
| /linux/kernel/locking/ |
| A D | rwsem.c | 714 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 931 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 940 static struct rw_semaphore __sched * 1060 static struct rw_semaphore * 1178 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake() 1199 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake() 1467 void __sched down_read(struct rw_semaphore *sem) in down_read() 1507 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock() 1563 void up_read(struct rw_semaphore *sem) in up_read() 1573 void up_write(struct rw_semaphore *sem) in up_write() [all …]
|
| /linux/tools/perf/util/ |
| A D | rwsem.h | 6 struct rw_semaphore { struct 10 int init_rwsem(struct rw_semaphore *sem); argument 11 int exit_rwsem(struct rw_semaphore *sem); 13 int down_read(struct rw_semaphore *sem); 14 int up_read(struct rw_semaphore *sem); 16 int down_write(struct rw_semaphore *sem); 17 int up_write(struct rw_semaphore *sem);
|
| A D | rwsem.c | 5 int init_rwsem(struct rw_semaphore *sem) in init_rwsem() 10 int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() 15 int down_read(struct rw_semaphore *sem) in down_read() 20 int up_read(struct rw_semaphore *sem) in up_read() 25 int down_write(struct rw_semaphore *sem) in down_write() 30 int up_write(struct rw_semaphore *sem) in up_write()
|
| A D | env.h | 103 struct rw_semaphore lock; 112 struct rw_semaphore lock;
|
| A D | thread.h | 47 struct rw_semaphore namespaces_lock; 49 struct rw_semaphore comm_lock;
|
| /linux/kernel/ |
| A D | kcmp.c | 73 static void kcmp_unlock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_unlock() 80 static int kcmp_lock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_lock()
|
| /linux/lib/ |
| A D | test_lockup.c | 187 down_read((struct rw_semaphore *)lock_rwsem_ptr); in test_lock() 189 down_write((struct rw_semaphore *)lock_rwsem_ptr); in test_lock() 288 up_read((struct rw_semaphore *)lock_rwsem_ptr); in test_unlock() 290 up_write((struct rw_semaphore *)lock_rwsem_ptr); in test_unlock() 479 test_kernel_ptr(lock_rwsem_ptr, sizeof(struct rw_semaphore))) in test_lockup_init() 494 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init() 508 offsetof(struct rw_semaphore, wait_lock.magic), in test_lockup_init()
|
| /linux/drivers/usb/gadget/function/ |
| A D | storage_common.h | 206 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, 211 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, 214 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, 216 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem,
|
| A D | storage_common.c | 330 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file() 391 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro() 434 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file() 465 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom()
|
| /linux/drivers/net/wireguard/ |
| A D | cookie.h | 19 struct rw_semaphore secret_lock; 31 struct rw_semaphore lock;
|
| A D | noise.h | 53 struct rw_semaphore lock; 89 struct rw_semaphore lock;
|
| /linux/fs/jffs2/ |
| A D | jffs2_fs_sb.h | 135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */ 155 struct rw_semaphore xattr_sem;
|
| /linux/fs/ntfs/ |
| A D | volume.h | 85 struct rw_semaphore mftbmp_lock; /* Lock for serializing accesses to the 95 struct rw_semaphore lcnbmp_lock; /* Lock for serializing accesses to the
|
| /linux/fs/ocfs2/ |
| A D | inode.h | 25 struct rw_semaphore ip_alloc_sem; 28 struct rw_semaphore ip_xattr_sem;
|
| /linux/fs/jfs/ |
| A D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
| /linux/drivers/mtd/ubi/ |
| A D | ubi.h | 206 struct rw_semaphore mutex; 596 struct rw_semaphore fm_eba_sem; 597 struct rw_semaphore fm_protect; 617 struct rw_semaphore work_sem;
|
| /linux/arch/x86/include/asm/ |
| A D | mmu.h | 37 struct rw_semaphore ldt_usr_sem;
|
| /linux/Documentation/locking/ |
| A D | locktypes.rst | 42 - rw_semaphore 132 rw_semaphore chapter 135 rw_semaphore is a multiple readers and single writer lock mechanism. 140 rw_semaphore complies by default with the strict owner semantics, but there 144 rw_semaphore and PREEMPT_RT 147 PREEMPT_RT kernels map rw_semaphore to a separate rt_mutex-based 150 Because an rw_semaphore writer cannot grant its priority to multiple
|
| /linux/include/sound/ |
| A D | seq_virmidi.h | 50 struct rw_semaphore filelist_sem;
|
| /linux/fs/dlm/ |
| A D | dlm_internal.h | 632 struct rw_semaphore ls_in_recovery; /* block local requests */ 633 struct rw_semaphore ls_recv_active; /* block dlm_recv */ 653 struct rw_semaphore ls_root_sem; /* protect root_list */
|
| /linux/drivers/crypto/qat/qat_common/ |
| A D | adf_cfg.h | 29 struct rw_semaphore lock;
|
| /linux/drivers/leds/ |
| A D | leds.h | 32 extern struct rw_semaphore leds_list_lock;
|
| /linux/fs/nilfs2/ |
| A D | the_nilfs.h | 100 struct rw_semaphore ns_sem; 142 struct rw_semaphore ns_segctor_sem;
|