| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | rwsem.h | 36 struct rw_semaphore { struct 73 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 115 struct rw_semaphore name = __RWSEM_INITIALIZER(name) 117 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 133 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 141 extern void down_read(struct rw_semaphore *sem); 142 extern int __must_check down_read_interruptible(struct rw_semaphore *sem); 143 extern int __must_check down_read_killable(struct rw_semaphore *sem); 148 extern int down_read_trylock(struct rw_semaphore *sem); 153 extern void down_write(struct rw_semaphore *sem); [all …]
|
| H A D | rtnetlink.h | 41 extern struct rw_semaphore pernet_ops_rwsem; 42 extern struct rw_semaphore net_rwsem;
|
| /OK3568_Linux_fs/kernel/kernel/locking/ |
| H A D | rwsem.c | 176 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 182 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 190 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 205 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 214 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 223 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 244 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 255 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 264 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable() 277 static inline bool rwsem_read_trylock(struct rw_semaphore *sem) in rwsem_read_trylock() [all …]
|
| /OK3568_Linux_fs/kernel/include/trace/hooks/ |
| H A D | rwsem.h | 14 struct rw_semaphore; 21 TP_PROTO(struct rw_semaphore *sem), 24 TP_PROTO(struct rw_semaphore *sem), 27 TP_PROTO(struct rw_semaphore *sem), 31 struct rw_semaphore *sem, 35 TP_PROTO(struct rw_semaphore *sem), 38 TP_PROTO(struct rw_semaphore *sem), 41 TP_PROTO(struct rw_semaphore *sem), 44 TP_PROTO(struct rw_semaphore *sem), 47 TP_PROTO(struct rw_semaphore *sem), [all …]
|
| H A D | dtask.h | 17 struct rw_semaphore; 44 TP_PROTO(struct rw_semaphore *sem), 47 TP_PROTO(struct rw_semaphore *sem), 50 TP_PROTO(struct rw_semaphore *sem), 53 TP_PROTO(struct rw_semaphore *sem),
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H 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);
|
| H 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()
|
| H A D | env.h | 86 struct rw_semaphore lock; 95 struct rw_semaphore lock;
|
| H A D | thread.h | 47 struct rw_semaphore namespaces_lock; 49 struct rw_semaphore comm_lock;
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | kcmp.c | 78 static void kcmp_unlock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_unlock() 85 static int kcmp_lock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_lock()
|
| /OK3568_Linux_fs/kernel/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,
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/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() 498 offsetof(struct rw_semaphore, wait_lock.magic), in test_lockup_init()
|
| /OK3568_Linux_fs/kernel/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;
|
| /OK3568_Linux_fs/kernel/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;
|
| /OK3568_Linux_fs/kernel/fs/ntfs/ |
| H 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
|
| /OK3568_Linux_fs/kernel/fs/ocfs2/ |
| H A D | inode.h | 27 struct rw_semaphore ip_alloc_sem; 30 struct rw_semaphore ip_xattr_sem;
|
| /OK3568_Linux_fs/kernel/fs/jfs/ |
| H A D | jfs_incore.h | 56 struct rw_semaphore rdwrlock; 65 struct rw_semaphore xattr_sem;
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubi/ |
| H A D | ubi.h | 201 struct rw_semaphore mutex; 568 struct rw_semaphore fm_eba_sem; 569 struct rw_semaphore fm_protect; 587 struct rw_semaphore work_sem;
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ubi/ |
| H A D | ubi.h | 206 struct rw_semaphore mutex; 597 struct rw_semaphore fm_eba_sem; 598 struct rw_semaphore fm_protect; 617 struct rw_semaphore work_sem;
|
| /OK3568_Linux_fs/kernel/Documentation/locking/ |
| H 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
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | mmu.h | 31 struct rw_semaphore ldt_usr_sem;
|
| /OK3568_Linux_fs/kernel/fs/dlm/ |
| H A D | dlm_internal.h | 600 struct rw_semaphore ls_in_recovery; /* block local requests */ 601 struct rw_semaphore ls_recv_active; /* block dlm_recv */ 621 struct rw_semaphore ls_root_sem; /* protect root_list */
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | seq_virmidi.h | 50 struct rw_semaphore filelist_sem;
|