| /linux-6.15/include/linux/ |
| H A D | rwsem.h | 48 struct rw_semaphore { struct 73 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 112 struct rw_semaphore name = __RWSEM_INITIALIZER(name) 139 struct rw_semaphore { struct 211 extern void down_read(struct rw_semaphore *sem); 218 extern int down_read_trylock(struct rw_semaphore *sem); 223 extern void down_write(struct rw_semaphore *sem); 229 extern int down_write_trylock(struct rw_semaphore *sem); 234 extern void up_read(struct rw_semaphore *sem); 239 extern void up_write(struct rw_semaphore *sem); [all …]
|
| /linux-6.15/kernel/locking/ |
| H A D | rwsem.c | 745 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 959 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 993 static struct rw_semaphore __sched * 1104 static struct rw_semaphore __sched * 1201 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake() 1222 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake() 1521 void __sched down_read(struct rw_semaphore *sem) in down_read() 1561 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock() 1617 void up_read(struct rw_semaphore *sem) in up_read() 1627 void up_write(struct rw_semaphore *sem) in up_write() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | rwsem.h | 13 struct rw_semaphore { struct 21 int init_rwsem(struct rw_semaphore *sem); argument 22 int exit_rwsem(struct rw_semaphore *sem); 24 int down_read(struct rw_semaphore *sem); 25 int up_read(struct rw_semaphore *sem); 27 int down_write(struct rw_semaphore *sem); 28 int up_write(struct rw_semaphore *sem);
|
| H A D | rwsem.c | 9 int init_rwsem(struct rw_semaphore *sem) in init_rwsem() 19 int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() 29 int down_read(struct rw_semaphore *sem) in down_read() 39 int up_read(struct rw_semaphore *sem) in up_read() 49 int down_write(struct rw_semaphore *sem) in down_write() 59 int up_write(struct rw_semaphore *sem) in up_write()
|
| H A D | thread.h | 52 struct rw_semaphore namespaces_lock; in DECLARE_RC_STRUCT() 54 struct rw_semaphore comm_lock; in DECLARE_RC_STRUCT() 234 static inline struct rw_semaphore *thread__namespaces_lock(struct thread *thread) in thread__namespaces_lock() 244 static inline struct rw_semaphore *thread__comm_lock(struct thread *thread) in thread__comm_lock()
|
| H A D | env.h | 112 struct rw_semaphore lock; 121 struct rw_semaphore lock;
|
| /linux-6.15/tools/include/linux/ |
| H A D | rwsem.h | 7 struct rw_semaphore { struct 11 static inline int init_rwsem(struct rw_semaphore *sem) in init_rwsem() argument 16 static inline int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() 21 static inline int down_read(struct rw_semaphore *sem) in down_read() 26 static inline int up_read(struct rw_semaphore *sem) in up_read() 31 static inline int down_write(struct rw_semaphore *sem) in down_write() 36 static inline int up_write(struct rw_semaphore *sem) in up_write()
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H 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, 222 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem,
|
| H A D | storage_common.c | 333 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file() 394 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro() 437 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file() 468 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom() 525 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_forced_eject()
|
| /linux-6.15/kernel/ |
| H 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-6.15/lib/ |
| H 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() 484 test_kernel_ptr(lock_rwsem_ptr, sizeof(struct rw_semaphore))) in test_lockup_init() 499 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init() 513 offsetof(struct rw_semaphore, wait_lock.magic), in test_lockup_init()
|
| /linux-6.15/fs/kernfs/ |
| H A D | kernfs-internal.h | 51 struct rw_semaphore kernfs_rwsem; 52 struct rw_semaphore kernfs_iattr_rwsem; 53 struct rw_semaphore kernfs_supers_rwsem;
|
| /linux-6.15/drivers/net/wireguard/ |
| H A D | cookie.h | 19 struct rw_semaphore secret_lock; 31 struct rw_semaphore lock;
|
| H A D | noise.h | 53 struct rw_semaphore lock; 89 struct rw_semaphore lock;
|
| /linux-6.15/fs/jffs2/ |
| H A D | jffs2_fs_sb.h | 135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */ 155 struct rw_semaphore xattr_sem;
|
| /linux-6.15/fs/ocfs2/ |
| H A D | inode.h | 25 struct rw_semaphore ip_alloc_sem; 28 struct rw_semaphore ip_xattr_sem;
|
| /linux-6.15/tools/perf/util/bpf_skel/vmlinux/ |
| H A D | vmlinux.h | 70 struct rw_semaphore { struct 97 struct rw_semaphore mmap_lock;
|
| /linux-6.15/drivers/cxl/core/ |
| H A D | core.h | 99 extern struct rw_semaphore cxl_dpa_rwsem; 100 extern struct rw_semaphore cxl_region_rwsem;
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_group_types.h | 46 struct rw_semaphore mode_sem;
|
| H A D | xe_vm_types.h | 210 struct rw_semaphore lock; 250 struct rw_semaphore notifier_lock;
|
| /linux-6.15/fs/jfs/ |
| H A D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | dtl.h | 38 extern struct rw_semaphore dtl_access_lock;
|
| /linux-6.15/fs/smb/server/ |
| H A D | connection.h | 54 struct rw_semaphore session_lock; 147 extern struct rw_semaphore conn_list_lock;
|
| /linux-6.15/include/sound/ |
| H A D | seq_virmidi.h | 50 struct rw_semaphore filelist_sem;
|
| /linux-6.15/drivers/leds/ |
| H A D | leds.h | 31 extern struct rw_semaphore leds_list_lock;
|