| /Linux-v5.4/include/linux/ |
| D | rwsem.h | 35 struct rw_semaphore { struct 63 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 101 struct rw_semaphore name = __RWSEM_INITIALIZER(name) 103 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 119 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 127 extern void down_read(struct rw_semaphore *sem); 128 extern int __must_check down_read_killable(struct rw_semaphore *sem); 133 extern int down_read_trylock(struct rw_semaphore *sem); 138 extern void down_write(struct rw_semaphore *sem); 139 extern int __must_check down_write_killable(struct rw_semaphore *sem); [all …]
|
| D | rtnetlink.h | 41 extern struct rw_semaphore pernet_ops_rwsem; 42 extern struct rw_semaphore net_rwsem;
|
| D | posix-clock.h | 86 struct rw_semaphore rwsem;
|
| D | gnss.h | 45 struct rw_semaphore rwsem;
|
| /Linux-v5.4/kernel/locking/ |
| D | rwsem.c | 175 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 180 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 188 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 203 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 212 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 220 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 241 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 252 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 261 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable() 274 static inline bool rwsem_read_trylock(struct rw_semaphore *sem) in rwsem_read_trylock() [all …]
|
| D | rwsem.h | 7 extern void __down_read(struct rw_semaphore *sem); 8 extern void __up_read(struct rw_semaphore *sem);
|
| /Linux-v5.4/tools/perf/util/ |
| 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);
|
| 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()
|
| D | thread.h | 38 struct rw_semaphore namespaces_lock; 40 struct rw_semaphore comm_lock;
|
| D | dsos.h | 20 struct rw_semaphore lock;
|
| /Linux-v5.4/drivers/usb/gadget/function/ |
| D | storage_common.h | 211 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, 216 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, 219 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, 221 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem,
|
| 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-v5.4/fs/jffs2/ |
| D | jffs2_fs_sb.h | 134 struct rw_semaphore wbuf_sem; /* Protects the write buffer */ 154 struct rw_semaphore xattr_sem;
|
| /Linux-v5.4/fs/ntfs/ |
| 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-v5.4/fs/ocfs2/ |
| D | inode.h | 27 struct rw_semaphore ip_alloc_sem; 30 struct rw_semaphore ip_xattr_sem;
|
| /Linux-v5.4/fs/jfs/ |
| D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
| /Linux-v5.4/drivers/leds/ |
| D | leds.h | 27 extern struct rw_semaphore leds_list_lock;
|
| /Linux-v5.4/arch/x86/include/asm/ |
| D | mmu.h | 31 struct rw_semaphore ldt_usr_sem;
|
| /Linux-v5.4/include/sound/ |
| D | seq_virmidi.h | 50 struct rw_semaphore filelist_sem;
|
| /Linux-v5.4/drivers/crypto/qat/qat_common/ |
| D | adf_cfg.h | 73 struct rw_semaphore lock;
|
| /Linux-v5.4/kernel/trace/ |
| D | trace_output.h | 33 extern struct rw_semaphore trace_event_sem;
|
| /Linux-v5.4/kernel/sched/ |
| D | autogroup.h | 12 struct rw_semaphore lock;
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_mn.h | 65 struct rw_semaphore lock;
|
| /Linux-v5.4/fs/udf/ |
| D | udf_i.h | 55 struct rw_semaphore i_data_sem;
|
| /Linux-v5.4/drivers/gpu/drm/gma500/ |
| D | gtt.h | 23 struct rw_semaphore sem;
|