Home
last modified time | relevance | path

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

12345678

/Linux-v5.15/include/linux/
Drwsem.h48 struct rw_semaphore { struct
70 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument
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) argument
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 *sem) in rwsem_is_contended()
[all …]
Drtnetlink.h41 extern struct rw_semaphore pernet_ops_rwsem;
42 extern struct rw_semaphore net_rwsem;
/Linux-v5.15/kernel/locking/
Drwsem.c137 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner()
142 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner()
150 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags()
165 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
174 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned()
182 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
203 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
214 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
223 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable()
236 static inline bool rwsem_read_trylock(struct rw_semaphore *sem, long *cntp) in rwsem_read_trylock()
[all …]
/Linux-v5.15/tools/perf/util/
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);
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()
Denv.h103 struct rw_semaphore lock;
112 struct rw_semaphore lock;
Dthread.h47 struct rw_semaphore namespaces_lock;
49 struct rw_semaphore comm_lock;
/Linux-v5.15/kernel/
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()
/Linux-v5.15/drivers/usb/gadget/function/
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,
Dstorage_common.c330 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file()
391 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro()
434 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file()
465 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom()
/Linux-v5.15/lib/
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()
479 test_kernel_ptr(lock_rwsem_ptr, sizeof(struct rw_semaphore))) in test_lockup_init()
494 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
508 offsetof(struct rw_semaphore, wait_lock.magic), in test_lockup_init()
/Linux-v5.15/drivers/net/wireguard/
Dcookie.h19 struct rw_semaphore secret_lock;
31 struct rw_semaphore lock;
Dnoise.h53 struct rw_semaphore lock;
89 struct rw_semaphore lock;
/Linux-v5.15/fs/ntfs/
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
/Linux-v5.15/fs/jffs2/
Djffs2_fs_sb.h135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
155 struct rw_semaphore xattr_sem;
/Linux-v5.15/fs/ocfs2/
Dinode.h25 struct rw_semaphore ip_alloc_sem;
28 struct rw_semaphore ip_xattr_sem;
/Linux-v5.15/fs/jfs/
Djfs_incore.h56 struct rw_semaphore rdwrlock;
65 struct rw_semaphore xattr_sem;
/Linux-v5.15/arch/x86/include/asm/
Dmmu.h37 struct rw_semaphore ldt_usr_sem;
/Linux-v5.15/include/sound/
Dseq_virmidi.h50 struct rw_semaphore filelist_sem;
/Linux-v5.15/drivers/crypto/qat/qat_common/
Dadf_cfg.h29 struct rw_semaphore lock;
/Linux-v5.15/drivers/leds/
Dleds.h32 extern struct rw_semaphore leds_list_lock;
/Linux-v5.15/fs/udf/
Dudf_i.h51 struct rw_semaphore i_data_sem;
/Linux-v5.15/kernel/trace/
Dtrace_output.h34 extern struct rw_semaphore trace_event_sem;
/Linux-v5.15/kernel/sched/
Dautogroup.h12 struct rw_semaphore lock;
/Linux-v5.15/drivers/gpu/drm/gma500/
Dgtt.h23 struct rw_semaphore sem;

12345678