Home
last modified time | relevance | path

Searched refs:rw_semaphore (Results 1 - 25 of 370) sorted by relevance

12345678910>>...15

/kernel/linux/linux-6.6/include/linux/
H A Drwsem.h48 struct rw_semaphore { struct
70 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
102 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
104 extern void __init_rwsem(struct rw_semaphore *sem, const char *name,
120 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
129 struct rw_semaphore { struct
143 struct rw_semaphore lockname = __RWSEM_INITIALIZER(lockname)
145 extern void __init_rwsem(struct rw_semaphore *rwsem, const char *name,
155 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
160 static __always_inline int rwsem_is_contended(struct rw_semaphore *se
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Drwsem.h35 struct rw_semaphore { struct
57 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
99 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
101 extern void __init_rwsem(struct rw_semaphore *sem, const char *name,
117 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
125 extern void down_read(struct rw_semaphore *sem);
126 extern int __must_check down_read_interruptible(struct rw_semaphore *sem);
127 extern int __must_check down_read_killable(struct rw_semaphore *sem);
132 extern int down_read_trylock(struct rw_semaphore *sem);
137 extern void down_write(struct rw_semaphore *se
[all...]
H A Drtnetlink.h41 extern struct rw_semaphore pernet_ops_rwsem;
42 extern struct rw_semaphore net_rwsem;
/kernel/linux/linux-6.6/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()
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 *se
[all...]
/kernel/linux/linux-5.10/kernel/locking/
H A Drwsem.c174 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner()
179 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner()
187 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags()
202 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
211 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned()
219 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
240 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
251 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
260 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable()
273 static inline bool rwsem_read_trylock(struct rw_semaphore *se
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Drwsem.h6 struct rw_semaphore { struct
10 int init_rwsem(struct rw_semaphore *sem);
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;
/kernel/linux/linux-6.6/tools/perf/util/
H A Drwsem.h6 struct rw_semaphore { struct
10 int init_rwsem(struct rw_semaphore *sem);
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 Dthread.h49 struct rw_semaphore namespaces_lock; in DECLARE_RC_STRUCT()
51 struct rw_semaphore comm_lock; in DECLARE_RC_STRUCT()
222 static inline struct rw_semaphore *thread__namespaces_lock(struct thread *thread) in thread__namespaces_lock()
232 static inline struct rw_semaphore *thread__comm_lock(struct thread *thread) in thread__comm_lock()
/kernel/linux/linux-6.6/tools/include/linux/
H A Drwsem.h7 struct rw_semaphore { struct
11 static inline int init_rwsem(struct rw_semaphore *sem) in init_rwsem()
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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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;
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/kernel/
H A Dkcmp.c73 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()
/kernel/linux/linux-6.6/lib/
H A Dtest_lockup.c110 MODULE_PARM_DESC(lock_rwsem_ptr, "lock rw_semaphore at address");
184 pr_notice("lock rw_semaphore %ps\n", in test_lock()
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()
292 pr_notice("unlock rw_semaphore %ps\n", 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_loc in test_lockup_init()
[all...]
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Dcookie.h19 struct rw_semaphore secret_lock;
31 struct rw_semaphore lock;
/kernel/linux/linux-6.6/drivers/cxl/core/
H A Dcore.h77 extern struct rw_semaphore cxl_dpa_rwsem;
78 extern struct rw_semaphore cxl_region_rwsem;
/kernel/linux/linux-5.10/lib/
H A Dtest_lockup.c110 MODULE_PARM_DESC(lock_rwsem_ptr, "lock rw_semaphore at address");
184 pr_notice("lock rw_semaphore %ps\n", in test_lock()
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()
292 pr_notice("unlock rw_semaphore %ps\n", 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()
/kernel/linux/linux-5.10/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

Completed in 11 milliseconds

12345678910>>...15