Home
last modified time | relevance | path

Searched refs:mmap_sem (Results 1 – 25 of 167) sorted by relevance

1234567

/Linux-v5.4/arch/arm/lib/
Duaccess_with_memcpy.c99 down_read(&current->mm->mmap_sem); in __copy_to_user_memcpy()
107 up_read(&current->mm->mmap_sem); in __copy_to_user_memcpy()
111 down_read(&current->mm->mmap_sem); in __copy_to_user_memcpy()
131 up_read(&current->mm->mmap_sem); in __copy_to_user_memcpy()
168 down_read(&current->mm->mmap_sem); in __clear_user_memset()
175 up_read(&current->mm->mmap_sem); in __clear_user_memset()
178 down_read(&current->mm->mmap_sem); in __clear_user_memset()
196 up_read(&current->mm->mmap_sem); in __clear_user_memset()
/Linux-v5.4/arch/microblaze/mm/
Dfault.c140 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault()
145 down_read(&mm->mmap_sem); in do_page_fault()
252 up_read(&mm->mmap_sem); in do_page_fault()
263 up_read(&mm->mmap_sem); in do_page_fault()
282 up_read(&mm->mmap_sem); in do_page_fault()
290 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/x86/mm/
Ddebug_pagetables.c19 down_read(&current->mm->mmap_sem); in ptdump_curknl_show()
21 up_read(&current->mm->mmap_sem); in ptdump_curknl_show()
32 down_read(&current->mm->mmap_sem); in ptdump_curusr_show()
34 up_read(&current->mm->mmap_sem); in ptdump_curusr_show()
/Linux-v5.4/arch/nios2/mm/
Dfault.c86 if (!down_read_trylock(&mm->mmap_sem)) { in do_page_fault()
90 down_read(&mm->mmap_sem); in do_page_fault()
175 up_read(&mm->mmap_sem); in do_page_fault()
183 up_read(&mm->mmap_sem); in do_page_fault()
221 up_read(&mm->mmap_sem); in do_page_fault()
228 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/fs/proc/
Dtask_nommu.c28 down_read(&mm->mmap_sem); in task_mem()
80 up_read(&mm->mmap_sem); in task_mem()
89 down_read(&mm->mmap_sem); in task_vsize()
94 up_read(&mm->mmap_sem); in task_vsize()
107 down_read(&mm->mmap_sem); in task_statm()
122 up_read(&mm->mmap_sem); in task_statm()
214 if (down_read_killable(&mm->mmap_sem)) { in m_start()
224 up_read(&mm->mmap_sem); in m_start()
234 up_read(&priv->mm->mmap_sem); in m_stop()
/Linux-v5.4/arch/sparc/mm/
Dfault_32.c199 down_read(&mm->mmap_sem); in do_sparc_fault()
276 up_read(&mm->mmap_sem); in do_sparc_fault()
284 up_read(&mm->mmap_sem); in do_sparc_fault()
333 up_read(&mm->mmap_sem); in do_sparc_fault()
341 up_read(&mm->mmap_sem); in do_sparc_fault()
388 down_read(&mm->mmap_sem); in force_user_fault()
413 up_read(&mm->mmap_sem); in force_user_fault()
416 up_read(&mm->mmap_sem); in force_user_fault()
421 up_read(&mm->mmap_sem); in force_user_fault()
/Linux-v5.4/Documentation/locking/
Dlockstat.rst111 …06 &mm->mmap_sem-W: 46 84 0.26 93…
112 …07 &mm->mmap_sem-R: 37 100 1.31 29950…
114 …09 &mm->mmap_sem 1 [<ffffffff811502a7>] khugepaged…
115 …10 &mm->mmap_sem 96 [<ffffffff815351c4>] __do_page_…
116 …11 &mm->mmap_sem 34 [<ffffffff81113d77>] vm_mmap_pg…
117 …12 &mm->mmap_sem 17 [<ffffffff81127e71>] vm_munmap+…
119 …14 &mm->mmap_sem 1 [<ffffffff81046fda>] dup_mmap+0…
120 …15 &mm->mmap_sem 60 [<ffffffff81129e29>] SyS_mprote…
121 …16 &mm->mmap_sem 41 [<ffffffff815351c4>] __do_page_…
122 …17 &mm->mmap_sem 68 [<ffffffff81113d77>] vm_mmap_pg…
/Linux-v5.4/mm/
Dmsync.c60 down_read(&mm->mmap_sem); in SYSCALL_DEFINE3()
91 up_read(&mm->mmap_sem); in SYSCALL_DEFINE3()
96 down_read(&mm->mmap_sem); in SYSCALL_DEFINE3()
107 up_read(&mm->mmap_sem); in SYSCALL_DEFINE3()
Dinit-mm.c34 .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
/Linux-v5.4/arch/alpha/mm/
Dfault.c120 down_read(&mm->mmap_sem); in do_page_fault()
183 up_read(&mm->mmap_sem); in do_page_fault()
190 up_read(&mm->mmap_sem); in do_page_fault()
214 up_read(&mm->mmap_sem); in do_page_fault()
221 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/openrisc/mm/
Dfault.c107 down_read(&mm->mmap_sem); in do_page_fault()
196 up_read(&mm->mmap_sem); in do_page_fault()
205 up_read(&mm->mmap_sem); in do_page_fault()
264 up_read(&mm->mmap_sem); in do_page_fault()
271 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/riscv/mm/
Dfault.c72 down_read(&mm->mmap_sem); in do_page_fault()
163 up_read(&mm->mmap_sem); in do_page_fault()
171 up_read(&mm->mmap_sem); in do_page_fault()
199 up_read(&mm->mmap_sem); in do_page_fault()
206 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/nds32/mm/
Dfault.c126 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault()
131 down_read(&mm->mmap_sem); in do_page_fault()
256 up_read(&mm->mmap_sem); in do_page_fault()
264 up_read(&mm->mmap_sem); in do_page_fault()
324 up_read(&mm->mmap_sem); in do_page_fault()
331 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/ia64/mm/
Dfault.c74 prefetchw(&mm->mmap_sem); in ia64_do_page_fault()
105 down_read(&mm->mmap_sem); in ia64_do_page_fault()
182 up_read(&mm->mmap_sem); in ia64_do_page_fault()
213 up_read(&mm->mmap_sem); in ia64_do_page_fault()
279 up_read(&mm->mmap_sem); in ia64_do_page_fault()
/Linux-v5.4/arch/hexagon/mm/
Dvm_fault.c58 down_read(&mm->mmap_sem); in do_page_fault()
111 up_read(&mm->mmap_sem); in do_page_fault()
115 up_read(&mm->mmap_sem); in do_page_fault()
142 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/m68k/kernel/
Dsys_m68k.c402 down_read(&current->mm->mmap_sem); in sys_cacheflush()
453 up_read(&current->mm->mmap_sem); in sys_cacheflush()
473 down_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
496 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
500 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
540 down_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
546 up_read(&mm->mmap_sem); in sys_atomic_cmpxchg_32()
/Linux-v5.4/arch/sh/kernel/
Dsys_sh.c72 down_read(&current->mm->mmap_sem); in sys_cacheflush()
75 up_read(&current->mm->mmap_sem); in sys_cacheflush()
94 up_read(&current->mm->mmap_sem); in sys_cacheflush()
/Linux-v5.4/arch/xtensa/mm/
Dfault.c77 down_read(&mm->mmap_sem); in do_page_fault()
143 up_read(&mm->mmap_sem); in do_page_fault()
156 up_read(&mm->mmap_sem); in do_page_fault()
171 up_read(&mm->mmap_sem); in do_page_fault()
179 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/sh/mm/
Dfault.c264 up_read(&mm->mmap_sem); in __bad_area()
288 up_read(&mm->mmap_sem); in do_sigbus()
307 up_read(&current->mm->mmap_sem); in mm_fault_error()
319 up_read(&current->mm->mmap_sem); in mm_fault_error()
323 up_read(&current->mm->mmap_sem); in mm_fault_error()
427 down_read(&mm->mmap_sem); in do_page_fault()
496 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/csky/mm/
Dfault.c119 down_read(&mm->mmap_sem); in do_page_fault()
169 up_read(&mm->mmap_sem); in do_page_fault()
177 up_read(&mm->mmap_sem); in do_page_fault()
209 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dsubpage_prot.c95 down_write(&mm->mmap_sem); in subpage_prot_clear()
130 up_write(&mm->mmap_sem); in subpage_prot_clear()
220 down_write(&mm->mmap_sem); in SYSCALL_DEFINE3()
270 up_write(&mm->mmap_sem); in SYSCALL_DEFINE3()
274 down_write(&mm->mmap_sem); in SYSCALL_DEFINE3()
283 up_write(&mm->mmap_sem); in SYSCALL_DEFINE3()
/Linux-v5.4/arch/m68k/mm/
Dfault.c89 down_read(&mm->mmap_sem); in do_page_fault()
180 up_read(&mm->mmap_sem); in do_page_fault()
188 up_read(&mm->mmap_sem); in do_page_fault()
217 up_read(&mm->mmap_sem); in do_page_fault()
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_user_pages.c109 down_read(&current->mm->mmap_sem); in qib_get_user_pages()
116 up_read(&current->mm->mmap_sem); in qib_get_user_pages()
120 up_read(&current->mm->mmap_sem); in qib_get_user_pages()
/Linux-v5.4/arch/mips/mm/
Dfault.c100 down_read(&mm->mmap_sem); in __do_page_fault()
194 up_read(&mm->mmap_sem); in __do_page_fault()
202 up_read(&mm->mmap_sem); in __do_page_fault()
254 up_read(&mm->mmap_sem); in __do_page_fault()
261 up_read(&mm->mmap_sem); in __do_page_fault()
/Linux-v5.4/arch/x86/entry/vdso/
Dvma.c153 if (down_write_killable(&mm->mmap_sem)) in map_vdso()
196 up_write(&mm->mmap_sem); in map_vdso()
258 down_write(&mm->mmap_sem); in map_vdso_once()
269 up_write(&mm->mmap_sem); in map_vdso_once()
273 up_write(&mm->mmap_sem); in map_vdso_once()

1234567