Home
last modified time | relevance | path

Searched refs:vm_flags (Results 1 – 25 of 239) sorted by relevance

12345678910

/linux-3.4.99/mm/
Dmmap.c80 pgprot_t vm_get_page_prot(unsigned long vm_flags) in vm_get_page_prot() argument
82 return __pgprot(pgprot_val(protection_map[vm_flags & in vm_get_page_prot()
84 pgprot_val(arch_vm_get_page_prot(vm_flags))); in vm_get_page_prot()
195 if (vma->vm_flags & VM_DENYWRITE) in __remove_shared_vm_struct()
197 if (vma->vm_flags & VM_SHARED) in __remove_shared_vm_struct()
201 if (unlikely(vma->vm_flags & VM_NONLINEAR)) in __remove_shared_vm_struct()
236 if (vma->vm_flags & VM_EXECUTABLE) in remove_vma()
439 if (vma->vm_flags & VM_DENYWRITE) in __vma_link_file()
441 if (vma->vm_flags & VM_SHARED) in __vma_link_file()
445 if (unlikely(vma->vm_flags & VM_NONLINEAR)) in __vma_link_file()
[all …]
Dfremap.c164 if (!vma || !(vma->vm_flags & VM_SHARED)) in SYSCALL_DEFINE5()
167 if (vma->vm_private_data && !(vma->vm_flags & VM_NONLINEAR)) in SYSCALL_DEFINE5()
170 if (!(vma->vm_flags & VM_CAN_NONLINEAR)) in SYSCALL_DEFINE5()
177 if (!(vma->vm_flags & VM_NONLINEAR)) { in SYSCALL_DEFINE5()
203 flags, vma->vm_flags, pgoff); in SYSCALL_DEFINE5()
215 vma->vm_flags |= VM_NONLINEAR; in SYSCALL_DEFINE5()
222 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
226 vm_flags_t saved_flags = vma->vm_flags; in SYSCALL_DEFINE5()
228 vma->vm_flags = saved_flags; in SYSCALL_DEFINE5()
235 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
Dnommu.c133 unsigned long vm_flags; in __get_user_pages() local
139 vm_flags = (foll_flags & FOLL_WRITE) ? in __get_user_pages()
141 vm_flags &= (foll_flags & FOLL_FORCE) ? in __get_user_pages()
150 if ((vma->vm_flags & (VM_IO | VM_PFNMAP)) || in __get_user_pages()
151 !(vm_flags & vma->vm_flags)) in __get_user_pages()
206 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) in follow_pfn()
245 vma->vm_flags |= VM_USERMAP; in vmalloc_user()
639 if (region->vm_flags & VM_MAPPED_COPY) { in __put_nommu_region()
693 protect_vma(vma, vma->vm_flags); in add_vma_to_mm()
794 if (vma->vm_flags & VM_EXECUTABLE) in delete_vma()
[all …]
Dmremap.c189 unsigned long vm_flags = vma->vm_flags; in move_vma() local
212 MADV_UNMERGEABLE, &vm_flags); in move_vma()
245 if (vm_flags & VM_ACCOUNT) { in move_vma()
246 vma->vm_flags &= ~VM_ACCOUNT; in move_vma()
264 vm_stat_account(mm, vma->vm_flags, vma->vm_file, new_len>>PAGE_SHIFT); in move_vma()
275 vma->vm_flags |= VM_ACCOUNT; in move_vma()
277 vma->vm_next->vm_flags |= VM_ACCOUNT; in move_vma()
280 if (vm_flags & VM_LOCKED) { in move_vma()
310 if (vma->vm_flags & (VM_DONTEXPAND | VM_PFNMAP)) in vma_to_resize()
318 if (vma->vm_flags & VM_LOCKED) { in vma_to_resize()
[all …]
Dmlock.c179 if ((vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE) in __mlock_vma_pages_range()
186 if (vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC)) in __mlock_vma_pages_range()
222 BUG_ON(!(vma->vm_flags & VM_LOCKED)); in mlock_vma_pages_range()
227 if (vma->vm_flags & (VM_IO | VM_PFNMAP)) in mlock_vma_pages_range()
230 if (!((vma->vm_flags & (VM_DONTEXPAND | VM_RESERVED)) || in mlock_vma_pages_range()
251 vma->vm_flags &= ~VM_LOCKED; /* and don't come back! */ in mlock_vma_pages_range()
279 vma->vm_flags &= ~VM_LOCKED; in munlock_vma_pages_range()
326 if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || in mlock_fixup()
366 vma->vm_flags = newflags; in mlock_fixup()
401 newflags = vma->vm_flags | VM_LOCKED; in do_mlock()
[all …]
Dmprotect.c149 unsigned long oldflags = vma->vm_flags; in mprotect_fixup()
207 vma->vm_flags = newflags; in mprotect_fixup()
235 unsigned long vm_flags, nstart, end, tmp, reqprot; in SYSCALL_DEFINE3() local
261 vm_flags = calc_vm_prot_bits(prot); in SYSCALL_DEFINE3()
275 if (!(vma->vm_flags & VM_GROWSDOWN)) in SYSCALL_DEFINE3()
284 if (!(vma->vm_flags & VM_GROWSUP)) in SYSCALL_DEFINE3()
296 newflags = vm_flags | (vma->vm_flags & ~(VM_READ | VM_WRITE | VM_EXEC)); in SYSCALL_DEFINE3()
Dmadvise.c47 unsigned long new_flags = vma->vm_flags; in madvise_behavior()
63 if (vma->vm_flags & VM_IO) { in madvise_behavior()
89 if (new_flags == vma->vm_flags) { in madvise_behavior()
120 vma->vm_flags = new_flags; in madvise_behavior()
179 if (vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_PFNMAP)) in madvise_dontneed()
182 if (unlikely(vma->vm_flags & VM_NONLINEAR)) { in madvise_dontneed()
211 if (vma->vm_flags & (VM_LOCKED|VM_NONLINEAR|VM_HUGETLB)) in madvise_remove()
220 if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE)) in madvise_remove()
Dmemory.c702 (void *)addr, vma->vm_flags, vma->anon_vma, mapping, index); in print_bad_pte()
790 if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP)) in vm_normal_page()
799 if (unlikely(vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP))) { in vm_normal_page()
800 if (vma->vm_flags & VM_MIXEDMAP) { in vm_normal_page()
809 if (!is_cow_mapping(vma->vm_flags)) in vm_normal_page()
841 unsigned long vm_flags = vma->vm_flags; in copy_one_pte() local
872 is_cow_mapping(vm_flags)) { in copy_one_pte()
890 if (is_cow_mapping(vm_flags)) { in copy_one_pte()
899 if (vm_flags & VM_SHARED) in copy_one_pte()
1051 if (!(vma->vm_flags & (VM_HUGETLB|VM_NONLINEAR|VM_PFNMAP|VM_INSERTPAGE))) { in copy_page_range()
[all …]
Drmap.c600 } else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) { in page_address_in_vma()
701 unsigned long *vm_flags) in page_referenced_one() argument
721 if (vma->vm_flags & VM_LOCKED) { in page_referenced_one()
724 *vm_flags |= VM_LOCKED; in page_referenced_one()
744 if (vma->vm_flags & VM_LOCKED) { in page_referenced_one()
747 *vm_flags |= VM_LOCKED; in page_referenced_one()
774 *vm_flags |= vma->vm_flags; in page_referenced_one()
781 unsigned long *vm_flags) in page_referenced_anon() argument
806 &mapcount, vm_flags); in page_referenced_anon()
830 unsigned long *vm_flags) in page_referenced_file() argument
[all …]
/linux-3.4.99/arch/powerpc/include/asm/
Dmman.h47 static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags) in arch_vm_get_page_prot() argument
49 return (vm_flags & VM_SAO) ? __pgprot(_PAGE_SAO) : __pgprot(0); in arch_vm_get_page_prot()
51 #define arch_vm_get_page_prot(vm_flags) arch_vm_get_page_prot(vm_flags) argument
/linux-3.4.99/include/linux/
Dksm.h24 unsigned long end, int advice, unsigned long *vm_flags);
87 struct mem_cgroup *memcg, unsigned long *vm_flags);
111 unsigned long end, int advice, unsigned long *vm_flags) in ksm_madvise() argument
123 struct mem_cgroup *memcg, unsigned long *vm_flags) in page_referenced_ksm() argument
Dhuge_mm.h67 ((__vma)->vm_flags & VM_HUGEPAGE))) && \
68 !((__vma)->vm_flags & VM_NOHUGEPAGE) && \
75 (__vma)->vm_flags & VM_HUGEPAGE))
112 unsigned long *vm_flags, int advice);
181 unsigned long *vm_flags, int advice) in hugepage_madvise() argument
Drmap.h160 struct mem_cgroup *memcg, unsigned long *vm_flags);
162 unsigned long address, unsigned int *mapcount, unsigned long *vm_flags);
239 unsigned long *vm_flags) in page_referenced() argument
241 *vm_flags = 0; in page_referenced()
/linux-3.4.99/arch/powerpc/platforms/cell/
Dspu_fault.c55 if (!(vma->vm_flags & VM_GROWSDOWN)) in spu_handle_mm_fault()
63 if (!(vma->vm_flags & VM_WRITE)) in spu_handle_mm_fault()
68 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) in spu_handle_mm_fault()
/linux-3.4.99/arch/hexagon/mm/
Dvm_fault.c74 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
86 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
90 if (!(vma->vm_flags & VM_READ)) in do_page_fault()
94 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-3.4.99/arch/tile/include/asm/
Dtlbflush.h43 return (vma->vm_flags & VM_HUGETLB) ? HPAGE_SIZE : PAGE_SIZE; in hv_page_size()
58 if (!vma || (vma != FLUSH_NONEXEC && (vma->vm_flags & VM_EXEC))) in local_flush_tlb_page()
72 if (!vma || (vma != FLUSH_NONEXEC && (vma->vm_flags & VM_EXEC))) in local_flush_tlb_pages()
/linux-3.4.99/arch/m68k/mm/
Dfault.c95 if (vma->vm_flags & VM_IO) in do_page_fault()
99 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
125 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
132 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))) in do_page_fault()
/linux-3.4.99/drivers/gpu/drm/
Ddrm_vm.c48 pgprot_t tmp = vm_get_page_prot(vma->vm_flags); in drm_io_prot()
73 pgprot_t tmp = vm_get_page_prot(vma->vm_flags); in drm_dma_prot()
503 vma->vm_flags &= ~(VM_WRITE | VM_MAYWRITE); in drm_mmap_dma()
519 vma->vm_flags |= VM_RESERVED; /* Don't swap */ in drm_mmap_dma()
520 vma->vm_flags |= VM_DONTEXPAND; in drm_mmap_dma()
588 vma->vm_flags &= ~(VM_WRITE | VM_MAYWRITE); in drm_mmap_locked()
622 vma->vm_flags |= VM_IO; /* not in core dump */ in drm_mmap_locked()
659 vma->vm_flags |= VM_RESERVED; in drm_mmap_locked()
664 vma->vm_flags |= VM_RESERVED; in drm_mmap_locked()
670 vma->vm_flags |= VM_RESERVED; /* Don't swap */ in drm_mmap_locked()
[all …]
Ddrm_info.c287 vma->vm_flags & VM_READ ? 'r' : '-', in drm_vma_info()
288 vma->vm_flags & VM_WRITE ? 'w' : '-', in drm_vma_info()
289 vma->vm_flags & VM_EXEC ? 'x' : '-', in drm_vma_info()
290 vma->vm_flags & VM_MAYSHARE ? 's' : 'p', in drm_vma_info()
291 vma->vm_flags & VM_LOCKED ? 'l' : '-', in drm_vma_info()
292 vma->vm_flags & VM_IO ? 'i' : '-', in drm_vma_info()
/linux-3.4.99/arch/mips/mm/
Dfault.c102 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
114 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
118 if (address == regs->cp0_epc && !(vma->vm_flags & VM_EXEC)) { in do_page_fault()
128 if (!(vma->vm_flags & VM_READ)) { in do_page_fault()
139 if (!(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC))) in do_page_fault()
/linux-3.4.99/arch/alpha/mm/
Dfault.c123 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
133 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
137 if (!(vma->vm_flags & (VM_READ | VM_WRITE))) in do_page_fault()
140 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-3.4.99/arch/powerpc/mm/
Dfault.c313 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
398 if (!(vma->vm_flags & VM_EXEC) && in do_page_fault()
400 !(vma->vm_flags & (VM_READ | VM_WRITE)))) in do_page_fault()
404 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
411 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))) in do_page_fault()
/linux-3.4.99/arch/avr32/mm/
Dfault.c96 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
112 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
117 if (!(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC))) in do_page_fault()
122 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
/linux-3.4.99/arch/xtensa/mm/
Dfault.c81 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
94 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
97 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
100 if (!(vma->vm_flags & (VM_READ | VM_WRITE))) in do_page_fault()
/linux-3.4.99/arch/cris/mm/
Dfault.c124 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault()
150 if (!(vma->vm_flags & VM_EXEC)) in do_page_fault()
153 if (!(vma->vm_flags & VM_WRITE)) in do_page_fault()
156 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) in do_page_fault()

12345678910