| /linux/include/linux/ |
| H A D | rwsem.h | 48 context_lock_struct(rw_semaphore) { struct 73 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 78 static inline void rwsem_assert_held_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_nolockdep() 84 static inline void rwsem_assert_held_write_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_write_nolockdep() 114 struct rw_semaphore name = __RWSEM_INITIALIZER(name) 116 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 132 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 141 extern struct task_struct *rwsem_owner(struct rw_semaphore *sem); 146 extern bool is_rwsem_reader_owned(struct rw_semaphore *sem); 153 context_lock_struct(rw_semaphore) { 49 countrw_semaphore global() argument 151 struct rw_semaphore { global() struct 165 dep_maprw_semaphore global() argument [all...] |
| H A D | utsname.h | 39 extern struct rw_semaphore uts_sem;
|
| H A D | rtnetlink.h | 52 extern struct rw_semaphore pernet_ops_rwsem; 53 extern struct rw_semaphore net_rwsem;
|
| /linux/kernel/locking/ |
| H A D | rwsem.c | 141 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 147 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 156 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 171 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 180 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 189 struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner() 198 bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 216 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 227 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 236 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable() [all …]
|
| /linux/tools/perf/util/ |
| H A D | rwsem.h | 13 struct LOCKABLE 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) SHARED_LOCK_FUNCTION(sem); 25 int up_read(struct rw_semaphore *sem) UNLOCK_FUNCTION(sem); 27 int down_write(struct rw_semaphore *sem) EXCLUSIVE_LOCK_FUNCTION(sem); 28 int up_write(struct rw_semaphore *sem) UNLOCK_FUNCTION(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() 40 int up_read(struct rw_semaphore *sem) in up_read() 51 int down_write(struct rw_semaphore *sem) in down_write() 62 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() 238 static inline struct rw_semaphore *thread__namespaces_lock(struct thread *thread) in thread__namespaces_lock() 243 static inline struct rw_semaphore *thread__comm_lock(struct thread *thread) in thread__comm_lock()
|
| H A D | env.h | 131 struct rw_semaphore lock; 140 struct rw_semaphore lock;
|
| /linux/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/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/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/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/fs/smb/server/mgmt/ |
| H A D | user_session.h | 51 struct rw_semaphore chann_lock; 63 struct rw_semaphore tree_conns_lock; 69 struct rw_semaphore rpc_lock;
|
| /linux/fs/kernfs/ |
| H A D | kernfs-internal.h | 49 struct rw_semaphore kernfs_rwsem; 50 struct rw_semaphore kernfs_iattr_rwsem; 51 struct rw_semaphore kernfs_supers_rwsem;
|
| /linux/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/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/fs/ocfs2/ |
| H A D | inode.h | 25 struct rw_semaphore ip_alloc_sem; 28 struct rw_semaphore ip_xattr_sem;
|
| /linux/tools/perf/util/bpf_skel/vmlinux/ |
| H A D | vmlinux.h | 70 struct rw_semaphore { struct 97 struct rw_semaphore mmap_lock;
|
| /linux/fs/jfs/ |
| H A D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_group_types.h | 46 struct rw_semaphore mode_sem;
|
| /linux/fs/smb/server/ |
| H A D | connection.h | 64 struct rw_semaphore session_lock; 160 extern struct rw_semaphore conn_list_lock;
|
| /linux/drivers/cxl/core/ |
| H A D | core.h | 126 struct rw_semaphore region; 131 struct rw_semaphore dpa;
|
| /linux/drivers/mtd/ubi/ |
| H A D | ubi.h | 198 struct rw_semaphore mutex; 594 struct rw_semaphore fm_eba_sem; 595 struct rw_semaphore fm_protect; 615 struct rw_semaphore work_sem;
|