Home
last modified time | relevance | path

Searched refs:rw_semaphore (Results 1 – 25 of 191) sorted by relevance

12345678

/OK3568_Linux_fs/kernel/include/linux/
H A Drwsem.h36 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 Drtnetlink.h41 extern struct rw_semaphore pernet_ops_rwsem;
42 extern struct rw_semaphore net_rwsem;
/OK3568_Linux_fs/kernel/kernel/locking/
H A Drwsem.c176 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 Drwsem.h14 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 Ddtask.h17 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 Drwsem.h6 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 Drwsem.c5 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 Denv.h86 struct rw_semaphore lock;
95 struct rw_semaphore lock;
H A Dthread.h47 struct rw_semaphore namespaces_lock;
49 struct rw_semaphore comm_lock;
/OK3568_Linux_fs/kernel/kernel/
H A Dkcmp.c78 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 Dstorage_common.h206 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 Dstorage_common.c332 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 Dtest_lockup.c187 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 Dcookie.h19 struct rw_semaphore secret_lock;
31 struct rw_semaphore lock;
H A Dnoise.h53 struct rw_semaphore lock;
89 struct rw_semaphore lock;
/OK3568_Linux_fs/kernel/fs/jffs2/
H A Djffs2_fs_sb.h135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
155 struct rw_semaphore xattr_sem;
/OK3568_Linux_fs/kernel/fs/ntfs/
H A Dvolume.h85 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 Dinode.h27 struct rw_semaphore ip_alloc_sem;
30 struct rw_semaphore ip_xattr_sem;
/OK3568_Linux_fs/kernel/fs/jfs/
H A Djfs_incore.h56 struct rw_semaphore rdwrlock;
65 struct rw_semaphore xattr_sem;
/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Dubi.h201 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 Dubi.h206 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 Dlocktypes.rst42 - 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 Dmmu.h31 struct rw_semaphore ldt_usr_sem;
/OK3568_Linux_fs/kernel/fs/dlm/
H A Ddlm_internal.h600 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 Dseq_virmidi.h50 struct rw_semaphore filelist_sem;

12345678