Home
last modified time | relevance | path

Searched refs:VM_SHARED (Results 1 – 25 of 112) sorted by relevance

12345

/linux-6.1.9/arch/arm64/mm/
Dmmap.c26 [VM_SHARED] = PAGE_NONE,
27 [VM_SHARED | VM_READ] = PAGE_READONLY,
28 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
29 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
31 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC,
32 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC,
33 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC,
34 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
73 protection_map[VM_EXEC | VM_SHARED] = PAGE_EXECONLY; in adjust_protection_map()
83 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); in vm_get_page_prot()
/linux-6.1.9/arch/x86/mm/
Dpgprot.c17 [VM_SHARED] = PAGE_NONE,
18 [VM_SHARED | VM_READ] = PAGE_READONLY,
19 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
20 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
21 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC,
22 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC,
23 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC,
24 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
38 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); in vm_get_page_prot()
/linux-6.1.9/arch/arc/mm/
Dmmap.c87 [VM_SHARED] = PAGE_U_NONE,
88 [VM_SHARED | VM_READ] = PAGE_U_R,
89 [VM_SHARED | VM_WRITE] = PAGE_U_W_R,
90 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_U_W_R,
91 [VM_SHARED | VM_EXEC] = PAGE_U_X_R,
92 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_U_X_R,
93 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_U_X_W_R,
94 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_U_X_W_R
/linux-6.1.9/arch/nios2/mm/
Dinit.c136 [VM_SHARED] = MKP(0, 0, 0),
137 [VM_SHARED | VM_READ] = MKP(0, 0, 1),
138 [VM_SHARED | VM_WRITE] = MKP(0, 1, 0),
139 [VM_SHARED | VM_WRITE | VM_READ] = MKP(0, 1, 1),
140 [VM_SHARED | VM_EXEC] = MKP(1, 0, 0),
141 [VM_SHARED | VM_EXEC | VM_READ] = MKP(1, 0, 1),
142 [VM_SHARED | VM_EXEC | VM_WRITE] = MKP(1, 1, 0),
143 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = MKP(1, 1, 1)
/linux-6.1.9/arch/m68k/mm/
Dsun3mmu.c108 [VM_SHARED] = PAGE_NONE,
109 [VM_SHARED | VM_READ] = PAGE_READONLY,
110 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
111 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
112 [VM_SHARED | VM_EXEC] = PAGE_READONLY,
113 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY,
114 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED,
115 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
Dmcfmmu.c265 [VM_SHARED] = PAGE_NONE,
266 [VM_SHARED | VM_READ] = __pgprot(CF_PAGE_VALID |
269 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
270 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
274 [VM_SHARED | VM_EXEC] = __pgprot(CF_PAGE_VALID |
277 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(CF_PAGE_VALID |
281 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(CF_PAGE_VALID |
285 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
Dmotorola.c403 [VM_SHARED] = PAGE_NONE_C,
404 [VM_SHARED | VM_READ] = PAGE_READONLY_C,
405 [VM_SHARED | VM_WRITE] = PAGE_SHARED_C,
406 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_C,
407 [VM_SHARED | VM_EXEC] = PAGE_READONLY_C,
408 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_C,
409 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_C,
410 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_C
/linux-6.1.9/arch/openrisc/mm/
Dinit.c221 [VM_SHARED] = PAGE_NONE,
222 [VM_SHARED | VM_READ] = PAGE_READONLY_X,
223 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
224 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X,
225 [VM_SHARED | VM_EXEC] = PAGE_READONLY,
226 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X,
227 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED,
228 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
/linux-6.1.9/arch/xtensa/mm/
Dinit.c230 [VM_SHARED] = PAGE_NONE,
231 [VM_SHARED | VM_READ] = PAGE_READONLY,
232 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
233 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
234 [VM_SHARED | VM_EXEC] = PAGE_READONLY_EXEC,
235 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_EXEC,
236 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_EXEC,
237 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_EXEC
/linux-6.1.9/arch/sh/mm/
Dmmap.c31 [VM_SHARED] = PAGE_NONE,
32 [VM_SHARED | VM_READ] = PAGE_READONLY,
33 [VM_SHARED | VM_WRITE] = PAGE_WRITEONLY,
34 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
35 [VM_SHARED | VM_EXEC] = PAGE_EXECREAD,
36 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_EXECREAD,
37 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX,
38 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
/linux-6.1.9/arch/microblaze/mm/
Dinit.c298 [VM_SHARED] = PAGE_NONE,
299 [VM_SHARED | VM_READ] = PAGE_READONLY_X,
300 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
301 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED_X,
302 [VM_SHARED | VM_EXEC] = PAGE_READONLY,
303 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X,
304 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED,
305 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
/linux-6.1.9/arch/s390/mm/
Dmmap.c201 [VM_SHARED] = PAGE_NONE,
202 [VM_SHARED | VM_READ] = PAGE_RO,
203 [VM_SHARED | VM_WRITE] = PAGE_RW,
204 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_RW,
205 [VM_SHARED | VM_EXEC] = PAGE_RX,
206 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_RX,
207 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX,
208 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
/linux-6.1.9/arch/hexagon/mm/
Dinit.c257 [VM_SHARED] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
259 [VM_SHARED | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
261 [VM_SHARED | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
263 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
266 [VM_SHARED | VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
268 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
271 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
274 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
/linux-6.1.9/arch/csky/mm/
Dinit.c210 [VM_SHARED] = PAGE_NONE,
211 [VM_SHARED | VM_READ] = PAGE_READ,
212 [VM_SHARED | VM_WRITE] = PAGE_WRITE,
213 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_WRITE,
214 [VM_SHARED | VM_EXEC] = PAGE_READ,
215 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READ,
216 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_WRITE,
217 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_WRITE
/linux-6.1.9/arch/loongarch/mm/
Dcache.c183 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER |
186 [VM_SHARED | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
189 [VM_SHARED | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
192 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
195 [VM_SHARED | VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID |
197 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
199 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
202 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
/linux-6.1.9/arch/um/kernel/
Dmem.c229 [VM_SHARED] = PAGE_NONE,
230 [VM_SHARED | VM_READ] = PAGE_READONLY,
231 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
232 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
233 [VM_SHARED | VM_EXEC] = PAGE_READONLY,
234 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY,
235 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED,
236 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
/linux-6.1.9/arch/alpha/mm/
Dinit.c294 [VM_SHARED] = _PAGE_S(_PAGE_FOE | _PAGE_FOW |
296 [VM_SHARED | VM_READ] = _PAGE_S(_PAGE_FOE | _PAGE_FOW),
297 [VM_SHARED | VM_WRITE] = _PAGE_S(_PAGE_FOE),
298 [VM_SHARED | VM_WRITE | VM_READ] = _PAGE_S(_PAGE_FOE),
299 [VM_SHARED | VM_EXEC] = _PAGE_S(_PAGE_FOW | _PAGE_FOR),
300 [VM_SHARED | VM_EXEC | VM_READ] = _PAGE_S(_PAGE_FOW),
301 [VM_SHARED | VM_EXEC | VM_WRITE] = _PAGE_S(0),
302 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = _PAGE_S(0)
/linux-6.1.9/arch/sparc/mm/
Dinit_32.c315 [VM_SHARED] = PAGE_NONE,
316 [VM_SHARED | VM_READ] = PAGE_READONLY,
317 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
318 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
319 [VM_SHARED | VM_EXEC] = PAGE_READONLY,
320 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY,
321 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED,
322 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED
/linux-6.1.9/arch/powerpc/mm/
Dpgtable.c486 [VM_SHARED] = PAGE_NONE,
487 [VM_SHARED | VM_READ] = PAGE_READONLY,
488 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
489 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
490 [VM_SHARED | VM_EXEC] = PAGE_READONLY_X,
491 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_READONLY_X,
492 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_SHARED_X,
493 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_SHARED_X
/linux-6.1.9/arch/ia64/mm/
Dinit.c505 [VM_SHARED] = PAGE_NONE,
506 [VM_SHARED | VM_READ] = PAGE_READONLY,
507 [VM_SHARED | VM_WRITE] = PAGE_SHARED,
508 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
509 [VM_SHARED | VM_EXEC] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
511 [VM_SHARED | VM_EXEC | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
513 [VM_SHARED | VM_EXEC | VM_WRITE] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
515 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = __pgprot(__ACCESS_BITS | _PAGE_PL_3 |
/linux-6.1.9/arch/parisc/mm/
Dinit.c884 [VM_SHARED] = PAGE_NONE,
885 [VM_SHARED | VM_READ] = PAGE_READONLY,
886 [VM_SHARED | VM_WRITE] = PAGE_WRITEONLY,
887 [VM_SHARED | VM_WRITE | VM_READ] = PAGE_SHARED,
888 [VM_SHARED | VM_EXEC] = PAGE_EXECREAD,
889 [VM_SHARED | VM_EXEC | VM_READ] = PAGE_EXECREAD,
890 [VM_SHARED | VM_EXEC | VM_WRITE] = PAGE_RWX,
891 [VM_SHARED | VM_EXEC | VM_WRITE | VM_READ] = PAGE_RWX
/linux-6.1.9/include/trace/events/
Dfs_dax.h43 __entry->vm_flags & VM_SHARED ? "shared" : "private",
89 __entry->vm_flags & VM_SHARED ? "shared" : "private",
134 __entry->vm_flags & VM_SHARED ? "shared" : "private",
178 __entry->vm_flags & VM_SHARED ? "shared" : "private",
220 __entry->vm_flags & VM_SHARED ? "shared" : "private",
/linux-6.1.9/mm/
Duserfaultfd.c66 bool vm_shared = dst_vma->vm_flags & VM_SHARED; in mfill_atomic_install_pte()
333 int vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
383 vm_shared = dst_vma->vm_flags & VM_SHARED; in __mcopy_atomic_hugetlb()
513 if (!(dst_vma->vm_flags & VM_SHARED)) { in mfill_atomic_pte()
588 dst_vma->vm_flags & VM_SHARED)) in __mcopy_atomic()
618 if (!(dst_vma->vm_flags & VM_SHARED) && in __mcopy_atomic()
Dmprotect.c60 if (!(vma->vm_flags & VM_SHARED)) { in can_change_pte_writable()
106 if (prot_numa && !(vma->vm_flags & VM_SHARED) && in change_pte_range()
593 VM_SHARED|VM_NORESERVE))) { in mprotect_fixup()
640 if (vma->vm_flags & VM_SHARED) in mprotect_fixup()
653 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
/linux-6.1.9/drivers/misc/
Dopen-dice.c94 if ((vma->vm_flags & VM_WRITE) && (vma->vm_flags & VM_SHARED)) in open_dice_mmap()
100 else if (vma->vm_flags & VM_SHARED) in open_dice_mmap()

12345