/linux-6.1.9/include/linux/ |
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) 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() 128 struct rw_semaphore { struct 142 struct rw_semaphore lockname = __RWSEM_INITIALIZER(lockname) argument 144 extern void __init_rwsem(struct rw_semaphore *rwsem, const char *name, 154 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() 159 static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() [all …]
|
D | rtnetlink.h | 41 extern struct rw_semaphore pernet_ops_rwsem; 42 extern struct rw_semaphore net_rwsem;
|
/linux-6.1.9/kernel/locking/ |
D | rwsem.c | 140 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 146 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 155 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 170 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 179 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 187 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 208 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 219 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 228 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable() 241 static inline bool rwsem_read_trylock(struct rw_semaphore *sem, long *cntp) in rwsem_read_trylock() [all …]
|
/linux-6.1.9/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 | env.h | 104 struct rw_semaphore lock; 113 struct rw_semaphore lock;
|
D | thread.h | 48 struct rw_semaphore namespaces_lock; 50 struct rw_semaphore comm_lock;
|
D | dsos.h | 21 struct rw_semaphore lock;
|
/linux-6.1.9/drivers/usb/gadget/function/ |
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,
|
D | storage_common.c | 332 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file() 393 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro() 436 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file() 467 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom() 524 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_forced_eject()
|
/linux-6.1.9/kernel/ |
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.1.9/lib/ |
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.1.9/drivers/net/wireguard/ |
D | cookie.h | 19 struct rw_semaphore secret_lock; 31 struct rw_semaphore lock;
|
D | noise.h | 53 struct rw_semaphore lock; 89 struct rw_semaphore lock;
|
/linux-6.1.9/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-6.1.9/fs/jffs2/ |
D | jffs2_fs_sb.h | 135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */ 155 struct rw_semaphore xattr_sem;
|
/linux-6.1.9/fs/ocfs2/ |
D | inode.h | 25 struct rw_semaphore ip_alloc_sem; 28 struct rw_semaphore ip_xattr_sem;
|
/linux-6.1.9/fs/jfs/ |
D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
/linux-6.1.9/arch/x86/include/asm/ |
D | mmu.h | 37 struct rw_semaphore ldt_usr_sem;
|
/linux-6.1.9/include/sound/ |
D | seq_virmidi.h | 50 struct rw_semaphore filelist_sem;
|
/linux-6.1.9/drivers/crypto/qat/qat_common/ |
D | adf_cfg.h | 29 struct rw_semaphore lock;
|
/linux-6.1.9/drivers/leds/ |
D | leds.h | 32 extern struct rw_semaphore leds_list_lock;
|
/linux-6.1.9/fs/udf/ |
D | udf_i.h | 51 struct rw_semaphore i_data_sem;
|
/linux-6.1.9/kernel/trace/ |
D | trace_output.h | 34 extern struct rw_semaphore trace_event_sem;
|
/linux-6.1.9/kernel/sched/ |
D | autogroup.h | 15 struct rw_semaphore lock;
|