Home
last modified time | relevance | path

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

123456789

/linux-6.3-rc2/include/linux/
A Drwsem.h47 struct rw_semaphore { struct
69 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument
101 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
128 struct rw_semaphore { struct
174 extern void down_read(struct rw_semaphore *sem);
181 extern int down_read_trylock(struct rw_semaphore *sem);
186 extern void down_write(struct rw_semaphore *sem);
192 extern int down_write_trylock(struct rw_semaphore *sem);
197 extern void up_read(struct rw_semaphore *sem);
202 extern void up_write(struct rw_semaphore *sem);
[all …]
A Drtnetlink.h42 extern struct rw_semaphore pernet_ops_rwsem;
43 extern struct rw_semaphore net_rwsem;
/linux-6.3-rc2/kernel/locking/
A Drwsem.c747 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
961 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
995 static struct rw_semaphore __sched *
1106 static struct rw_semaphore __sched *
1203 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake()
1224 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake()
1517 void __sched down_read(struct rw_semaphore *sem) in down_read()
1557 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1613 void up_read(struct rw_semaphore *sem) in up_read()
1623 void up_write(struct rw_semaphore *sem) in up_write()
[all …]
/linux-6.3-rc2/tools/perf/util/
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);
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()
A Denv.h104 struct rw_semaphore lock;
113 struct rw_semaphore lock;
A Dthread.h48 struct rw_semaphore namespaces_lock;
50 struct rw_semaphore comm_lock;
/linux-6.3-rc2/drivers/usb/gadget/function/
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,
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-6.3-rc2/kernel/
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()
/linux-6.3-rc2/lib/
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-6.3-rc2/drivers/net/wireguard/
A Dcookie.h19 struct rw_semaphore secret_lock;
31 struct rw_semaphore lock;
A Dnoise.h53 struct rw_semaphore lock;
89 struct rw_semaphore lock;
/linux-6.3-rc2/fs/ntfs/
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
/linux-6.3-rc2/fs/jffs2/
A Djffs2_fs_sb.h135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
155 struct rw_semaphore xattr_sem;
/linux-6.3-rc2/fs/ocfs2/
A Dinode.h25 struct rw_semaphore ip_alloc_sem;
28 struct rw_semaphore ip_xattr_sem;
/linux-6.3-rc2/drivers/iommu/iommufd/
A Diommufd_private.h37 struct rw_semaphore domains_rwsem;
42 struct rw_semaphore iova_rwsem;
125 struct rw_semaphore destroy_rwsem;
/linux-6.3-rc2/fs/jfs/
A Djfs_incore.h56 struct rw_semaphore rdwrlock;
65 struct rw_semaphore xattr_sem;
/linux-6.3-rc2/arch/x86/include/asm/
A Dmmu.h37 struct rw_semaphore ldt_usr_sem;
/linux-6.3-rc2/include/sound/
A Dseq_virmidi.h50 struct rw_semaphore filelist_sem;
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dadf_cfg.h29 struct rw_semaphore lock;
/linux-6.3-rc2/drivers/leds/
A Dleds.h31 extern struct rw_semaphore leds_list_lock;
/linux-6.3-rc2/fs/btrfs/
A Dfs.h266 struct rw_semaphore rwsem;
485 struct rw_semaphore commit_root_sem;
487 struct rw_semaphore cleanup_work_sem;
489 struct rw_semaphore subvol_sem;
/linux-6.3-rc2/kernel/trace/
A Dtrace_output.h34 extern struct rw_semaphore trace_event_sem;
/linux-6.3-rc2/fs/udf/
A Dudf_i.h52 struct rw_semaphore i_data_sem;

Completed in 32 milliseconds

123456789