Lines Matching refs:vm_area_struct

256 struct vm_area_struct *vm_area_alloc(struct mm_struct *);
257 struct vm_area_struct *vm_area_dup(struct vm_area_struct *);
258 void vm_area_free(struct vm_area_struct *);
495 struct vm_area_struct *vma; /* Target VMA */
552 void (*open)(struct vm_area_struct * area);
557 void (*close)(struct vm_area_struct * area);
559 int (*may_split)(struct vm_area_struct *area, unsigned long addr);
560 int (*mremap)(struct vm_area_struct *area);
566 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
573 unsigned long (*pagesize)(struct vm_area_struct * area);
586 int (*access)(struct vm_area_struct *vma, unsigned long addr,
592 const char *(*name)(struct vm_area_struct *vma);
602 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
614 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
622 struct page *(*find_special_page)(struct vm_area_struct *vma,
626 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
637 static inline void vm_flags_init(struct vm_area_struct *vma, in vm_flags_init()
644 static inline void vm_flags_reset(struct vm_area_struct *vma, in vm_flags_reset()
651 static inline void vm_flags_reset_once(struct vm_area_struct *vma, in vm_flags_reset_once()
658 static inline void vm_flags_set(struct vm_area_struct *vma, in vm_flags_set()
665 static inline void vm_flags_clear(struct vm_area_struct *vma, in vm_flags_clear()
676 static inline void __vm_flags_mod(struct vm_area_struct *vma, in __vm_flags_mod()
686 static inline void vm_flags_mod(struct vm_area_struct *vma, in vm_flags_mod()
693 static inline void vma_set_anonymous(struct vm_area_struct *vma) in vma_set_anonymous()
698 static inline bool vma_is_anonymous(struct vm_area_struct *vma) in vma_is_anonymous()
703 static inline bool vma_is_temporary_stack(struct vm_area_struct *vma) in vma_is_temporary_stack()
717 static inline bool vma_is_foreign(struct vm_area_struct *vma) in vma_is_foreign()
728 static inline bool vma_is_accessible(struct vm_area_struct *vma) in vma_is_accessible()
734 struct vm_area_struct *vma_find(struct vma_iterator *vmi, unsigned long max) in vma_find()
739 static inline struct vm_area_struct *vma_next(struct vma_iterator *vmi) in vma_next()
748 static inline struct vm_area_struct *vma_prev(struct vma_iterator *vmi) in vma_prev()
775 struct vm_area_struct *vma) in vma_iter_bulk_store()
808 bool vma_is_shmem(struct vm_area_struct *vma);
809 bool vma_is_anon_shmem(struct vm_area_struct *vma);
811 static inline bool vma_is_shmem(struct vm_area_struct *vma) { return false; } in vma_is_shmem()
812 static inline bool vma_is_anon_shmem(struct vm_area_struct *vma) { return false; } in vma_is_anon_shmem()
815 int vma_is_stack_for_current(struct vm_area_struct *vma);
1163 static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma) in maybe_mkwrite()
1767 static inline bool page_needs_cow_for_dma(struct vm_area_struct *vma, in page_needs_cow_for_dma()
2141 struct folio *vm_normal_folio(struct vm_area_struct *vma, unsigned long addr,
2143 struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr,
2145 struct page *vm_normal_page_pmd(struct vm_area_struct *vma, unsigned long addr,
2148 void zap_vma_ptes(struct vm_area_struct *vma, unsigned long address,
2150 void zap_page_range_single(struct vm_area_struct *vma, unsigned long address,
2152 static inline void zap_vma_pages(struct vm_area_struct *vma) in zap_vma_pages()
2158 struct vm_area_struct *start_vma, unsigned long start,
2166 copy_page_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);
2169 int follow_pfn(struct vm_area_struct *vma, unsigned long address,
2171 int follow_phys(struct vm_area_struct *vma, unsigned long address,
2173 int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
2183 extern vm_fault_t handle_mm_fault(struct vm_area_struct *vma,
2194 static inline vm_fault_t handle_mm_fault(struct vm_area_struct *vma, in handle_mm_fault()
2231 struct vm_area_struct **vmas, int *locked);
2235 struct vm_area_struct **vmas, int *locked);
2238 struct vm_area_struct **vmas);
2241 struct vm_area_struct **vmas);
2265 extern unsigned long move_page_tables(struct vm_area_struct *vma,
2266 unsigned long old_addr, struct vm_area_struct *new_vma,
2290 int vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot);
2291 static inline bool vma_wants_manual_pte_write_upgrade(struct vm_area_struct *vma) in vma_wants_manual_pte_write_upgrade()
2304 bool can_change_pte_writable(struct vm_area_struct *vma, unsigned long addr,
2307 struct vm_area_struct *vma, unsigned long start,
2310 struct vm_area_struct *vma, struct vm_area_struct **pprev,
2906 void vma_interval_tree_insert(struct vm_area_struct *node,
2908 void vma_interval_tree_insert_after(struct vm_area_struct *node,
2909 struct vm_area_struct *prev,
2911 void vma_interval_tree_remove(struct vm_area_struct *node,
2913 struct vm_area_struct *vma_interval_tree_iter_first(struct rb_root_cached *root,
2915 struct vm_area_struct *vma_interval_tree_iter_next(struct vm_area_struct *node,
2941 extern int vma_expand(struct vma_iterator *vmi, struct vm_area_struct *vma,
2943 struct vm_area_struct *next);
2944 extern int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma,
2946 extern struct vm_area_struct *vma_merge(struct vma_iterator *vmi,
2947 struct mm_struct *, struct vm_area_struct *prev, unsigned long addr,
2951 extern struct anon_vma *find_mergeable_anon_vma(struct vm_area_struct *);
2952 extern int __split_vma(struct vma_iterator *vmi, struct vm_area_struct *,
2954 extern int split_vma(struct vma_iterator *vmi, struct vm_area_struct *,
2956 extern int insert_vm_struct(struct mm_struct *, struct vm_area_struct *);
2957 extern void unlink_file_vma(struct vm_area_struct *);
2958 extern struct vm_area_struct *copy_vma(struct vm_area_struct **,
2988 extern bool vma_is_special_mapping(const struct vm_area_struct *vma,
2990 extern struct vm_area_struct *_install_special_mapping(struct mm_struct *mm,
3018 extern int do_vma_munmap(struct vma_iterator *vmi, struct vm_area_struct *vma,
3066 extern int expand_stack(struct vm_area_struct *vma, unsigned long address);
3069 extern int expand_downwards(struct vm_area_struct *vma,
3072 extern int expand_upwards(struct vm_area_struct *vma, unsigned long address);
3078 extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr);
3079 extern struct vm_area_struct * find_vma_prev(struct mm_struct * mm, unsigned long addr,
3080 struct vm_area_struct **pprev);
3086 struct vm_area_struct *find_vma_intersection(struct mm_struct *mm,
3097 struct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr) in vma_lookup()
3102 static inline unsigned long vm_start_gap(struct vm_area_struct *vma) in vm_start_gap()
3114 static inline unsigned long vm_end_gap(struct vm_area_struct *vma) in vm_end_gap()
3126 static inline unsigned long vma_pages(struct vm_area_struct *vma) in vma_pages()
3132 static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm, in find_exact_vma()
3135 struct vm_area_struct *vma = vma_lookup(mm, vm_start); in find_exact_vma()
3143 static inline bool range_in_vma(struct vm_area_struct *vma, in range_in_vma()
3151 void vma_set_page_prot(struct vm_area_struct *vma);
3157 static inline void vma_set_page_prot(struct vm_area_struct *vma) in vma_set_page_prot()
3163 void vma_set_file(struct vm_area_struct *vma, struct file *file);
3166 unsigned long change_prot_numa(struct vm_area_struct *vma,
3170 struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr);
3171 int remap_pfn_range(struct vm_area_struct *, unsigned long addr,
3173 int remap_pfn_range_notrack(struct vm_area_struct *vma, unsigned long addr,
3175 int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *);
3176 int vm_insert_pages(struct vm_area_struct *vma, unsigned long addr,
3178 int vm_map_pages(struct vm_area_struct *vma, struct page **pages,
3180 int vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages,
3182 vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr,
3184 vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr,
3186 vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
3188 vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr,
3190 vm_fault_t vmf_insert_mixed_mkwrite(struct vm_area_struct *vma,
3192 int vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len);
3194 static inline vm_fault_t vmf_insert_page(struct vm_area_struct *vma, in vmf_insert_page()
3208 static inline int io_remap_pfn_range(struct vm_area_struct *vma, in io_remap_pfn_range()
3223 struct page *follow_page(struct vm_area_struct *vma, unsigned long address,
3356 extern struct vm_area_struct *get_gate_vma(struct mm_struct *mm);
3360 static inline struct vm_area_struct *get_gate_vma(struct mm_struct *mm) in get_gate_vma()
3387 const char * arch_vma_name(struct vm_area_struct *vma);
3547 struct vm_area_struct *vma,
3564 static inline bool vma_is_special_huge(const struct vm_area_struct *vma) in vma_is_special_huge()
3640 static inline int seal_check_future_write(int seals, struct vm_area_struct *vma) in seal_check_future_write()