Home
last modified time | relevance | path

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

12345678

/linux/include/linux/
H A Drwsem.h48 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()
83 static inline void rwsem_assert_held_write_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_write_nolockdep()
112 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
114 extern void __init_rwsem(struct rw_semaphore *sem, const char *name,
130 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
139 struct rw_semaphore { struct
153 struct rw_semaphore lockname = __RWSEM_INITIALIZER(lockname) argument
155 extern void __init_rwsem(struct rw_semaphore *rwsem, const char *name,
[all …]
/linux/kernel/locking/
H A Drwsem.c140 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()
188 static inline struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner()
197 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
215 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
226 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
235 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable()
[all …]
/linux/tools/perf/util/
H A Drwsem.h13 struct 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);
25 int up_read(struct rw_semaphore *sem);
27 int down_write(struct rw_semaphore *sem);
28 int up_write(struct rw_semaphore *sem);
H A Drwsem.c9 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()
39 int up_read(struct rw_semaphore *sem) in up_read()
49 int down_write(struct rw_semaphore *sem) in down_write()
59 int up_write(struct rw_semaphore *sem) in up_write()
H A Dthread.h52 struct rw_semaphore namespaces_lock; in DECLARE_RC_STRUCT()
54 struct rw_semaphore comm_lock; in DECLARE_RC_STRUCT()
230 static inline struct rw_semaphore *thread__namespaces_lock(struct thread *thread) in thread__namespaces_lock()
240 static inline struct rw_semaphore *thread__comm_lock(struct thread *thread) in thread__comm_lock()
H A Denv.h114 struct rw_semaphore lock;
123 struct rw_semaphore lock;
/linux/tools/include/linux/
H A Drwsem.h7 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 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,
222 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem,
H A Dstorage_common.c333 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/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()
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/kernfs/
H A Dkernfs-internal.h49 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 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;
/linux/fs/jffs2/
H A Djffs2_fs_sb.h135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
155 struct rw_semaphore xattr_sem;
/linux/fs/ocfs2/
H A Dinode.h25 struct rw_semaphore ip_alloc_sem;
28 struct rw_semaphore ip_xattr_sem;
/linux/tools/perf/util/bpf_skel/vmlinux/
H A Dvmlinux.h70 struct rw_semaphore { struct
97 struct rw_semaphore mmap_lock;
/linux/drivers/cxl/core/
H A Dcore.h97 extern struct rw_semaphore cxl_dpa_rwsem;
98 extern struct rw_semaphore cxl_region_rwsem;
/linux/drivers/gpu/drm/xe/
H A Dxe_vm_types.h178 struct rw_semaphore lock;
218 struct rw_semaphore notifier_lock;
H A Dxe_hw_engine_group_types.h46 struct rw_semaphore mode_sem;
/linux/fs/jfs/
H A Djfs_incore.h56 struct rw_semaphore rdwrlock;
65 struct rw_semaphore xattr_sem;
/linux/fs/smb/server/
H A Dconnection.h53 struct rw_semaphore session_lock;
146 extern struct rw_semaphore conn_list_lock;
/linux/fs/btrfs/
H A Dfs.h314 struct rw_semaphore rwsem;
546 struct rw_semaphore commit_root_sem;
548 struct rw_semaphore cleanup_work_sem;
550 struct rw_semaphore subvol_sem;
/linux/arch/x86/include/asm/
H A Dmmu.h41 struct rw_semaphore ldt_usr_sem;
/linux/include/sound/
H A Dseq_virmidi.h50 struct rw_semaphore filelist_sem;
/linux/drivers/leds/
H A Dleds.h31 extern struct rw_semaphore leds_list_lock;

12345678