Lines Matching refs:vma

76 extern void uffd_wp_range(struct mm_struct *dst_mm, struct vm_area_struct *vma,
80 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma, in is_mergeable_vm_userfaultfd_ctx() argument
83 return vma->vm_userfaultfd_ctx.ctx == vm_ctx.ctx; in is_mergeable_vm_userfaultfd_ctx()
97 static inline bool uffd_disable_huge_pmd_share(struct vm_area_struct *vma) in uffd_disable_huge_pmd_share() argument
99 return vma->vm_flags & (VM_UFFD_WP | VM_UFFD_MINOR); in uffd_disable_huge_pmd_share()
109 static inline bool uffd_disable_fault_around(struct vm_area_struct *vma) in uffd_disable_fault_around() argument
111 return vma->vm_flags & (VM_UFFD_WP | VM_UFFD_MINOR); in uffd_disable_fault_around()
114 static inline bool userfaultfd_missing(struct vm_area_struct *vma) in userfaultfd_missing() argument
116 return vma->vm_flags & VM_UFFD_MISSING; in userfaultfd_missing()
119 static inline bool userfaultfd_wp(struct vm_area_struct *vma) in userfaultfd_wp() argument
121 return vma->vm_flags & VM_UFFD_WP; in userfaultfd_wp()
124 static inline bool userfaultfd_minor(struct vm_area_struct *vma) in userfaultfd_minor() argument
126 return vma->vm_flags & VM_UFFD_MINOR; in userfaultfd_minor()
129 static inline bool userfaultfd_pte_wp(struct vm_area_struct *vma, in userfaultfd_pte_wp() argument
132 return userfaultfd_wp(vma) && pte_uffd_wp(pte); in userfaultfd_pte_wp()
135 static inline bool userfaultfd_huge_pmd_wp(struct vm_area_struct *vma, in userfaultfd_huge_pmd_wp() argument
138 return userfaultfd_wp(vma) && pmd_uffd_wp(pmd); in userfaultfd_huge_pmd_wp()
141 static inline bool userfaultfd_armed(struct vm_area_struct *vma) in userfaultfd_armed() argument
143 return vma->vm_flags & __VM_UFFD_FLAGS; in userfaultfd_armed()
146 static inline bool vma_can_userfault(struct vm_area_struct *vma, in vma_can_userfault() argument
150 (!is_vm_hugetlb_page(vma) && !vma_is_shmem(vma))) in vma_can_userfault()
158 if ((vm_flags & VM_UFFD_WP) && !vma_is_anonymous(vma)) in vma_can_userfault()
161 return vma_is_anonymous(vma) || is_vm_hugetlb_page(vma) || in vma_can_userfault()
162 vma_is_shmem(vma); in vma_can_userfault()
174 extern bool userfaultfd_remove(struct vm_area_struct *vma,
192 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma, in is_mergeable_vm_userfaultfd_ctx() argument
198 static inline bool userfaultfd_missing(struct vm_area_struct *vma) in userfaultfd_missing() argument
203 static inline bool userfaultfd_wp(struct vm_area_struct *vma) in userfaultfd_wp() argument
208 static inline bool userfaultfd_minor(struct vm_area_struct *vma) in userfaultfd_minor() argument
213 static inline bool userfaultfd_pte_wp(struct vm_area_struct *vma, in userfaultfd_pte_wp() argument
219 static inline bool userfaultfd_huge_pmd_wp(struct vm_area_struct *vma, in userfaultfd_huge_pmd_wp() argument
226 static inline bool userfaultfd_armed(struct vm_area_struct *vma) in userfaultfd_armed() argument
231 static inline int dup_userfaultfd(struct vm_area_struct *vma, in dup_userfaultfd() argument
241 static inline void mremap_userfaultfd_prep(struct vm_area_struct *vma, in mremap_userfaultfd_prep() argument
253 static inline bool userfaultfd_remove(struct vm_area_struct *vma, in userfaultfd_remove() argument
272 static inline bool uffd_disable_fault_around(struct vm_area_struct *vma) in uffd_disable_fault_around() argument