Lines Matching refs:vm_area_struct
253 struct vm_area_struct *vm_area_alloc(struct mm_struct *);
254 struct vm_area_struct *vm_area_dup(struct vm_area_struct *);
255 void vm_area_free(struct vm_area_struct *);
533 struct vm_area_struct *vma; /* Target VMA */
589 void (*open)(struct vm_area_struct * area);
590 void (*close)(struct vm_area_struct * area);
592 int (*may_split)(struct vm_area_struct *area, unsigned long addr);
593 int (*mremap)(struct vm_area_struct *area);
599 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
606 unsigned long (*pagesize)(struct vm_area_struct * area);
619 int (*access)(struct vm_area_struct *vma, unsigned long addr,
625 const char *(*name)(struct vm_area_struct *vma);
635 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
647 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
655 struct page *(*find_special_page)(struct vm_area_struct *vma,
659 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
669 static inline void vma_set_anonymous(struct vm_area_struct *vma) in vma_set_anonymous()
674 static inline bool vma_is_anonymous(struct vm_area_struct *vma) in vma_is_anonymous()
679 static inline bool vma_is_temporary_stack(struct vm_area_struct *vma) in vma_is_temporary_stack()
693 static inline bool vma_is_foreign(struct vm_area_struct *vma) in vma_is_foreign()
704 static inline bool vma_is_accessible(struct vm_area_struct *vma) in vma_is_accessible()
714 bool vma_is_shmem(struct vm_area_struct *vma);
716 static inline bool vma_is_shmem(struct vm_area_struct *vma) { return false; } in vma_is_shmem()
719 int vma_is_stack_for_current(struct vm_area_struct *vma);
1011 static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma) in maybe_mkwrite()
1342 static inline bool page_needs_cow_for_dma(struct vm_area_struct *vma, in page_needs_cow_for_dma()
1730 struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr,
1732 struct page *vm_normal_page_pmd(struct vm_area_struct *vma, unsigned long addr,
1735 void zap_vma_ptes(struct vm_area_struct *vma, unsigned long address,
1737 void zap_page_range(struct vm_area_struct *vma, unsigned long address,
1739 void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *start_vma,
1747 copy_page_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);
1753 int follow_pfn(struct vm_area_struct *vma, unsigned long address,
1755 int follow_phys(struct vm_area_struct *vma, unsigned long address,
1757 int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
1769 extern vm_fault_t handle_mm_fault(struct vm_area_struct *vma,
1781 static inline vm_fault_t handle_mm_fault(struct vm_area_struct *vma, in handle_mm_fault()
1819 struct vm_area_struct **vmas, int *locked);
1823 struct vm_area_struct **vmas, int *locked);
1826 struct vm_area_struct **vmas);
1829 struct vm_area_struct **vmas);
1874 extern unsigned long move_page_tables(struct vm_area_struct *vma,
1875 unsigned long old_addr, struct vm_area_struct *new_vma,
1895 extern unsigned long change_protection(struct vm_area_struct *vma, unsigned long start,
1898 extern int mprotect_fixup(struct vm_area_struct *vma,
1899 struct vm_area_struct **pprev, unsigned long start,
2043 int vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot);
2505 void vma_interval_tree_insert(struct vm_area_struct *node,
2507 void vma_interval_tree_insert_after(struct vm_area_struct *node,
2508 struct vm_area_struct *prev,
2510 void vma_interval_tree_remove(struct vm_area_struct *node,
2512 struct vm_area_struct *vma_interval_tree_iter_first(struct rb_root_cached *root,
2514 struct vm_area_struct *vma_interval_tree_iter_next(struct vm_area_struct *node,
2540 extern int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
2541 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert,
2542 struct vm_area_struct *expand);
2543 static inline int vma_adjust(struct vm_area_struct *vma, unsigned long start, in vma_adjust()
2544 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert) in vma_adjust()
2548 extern struct vm_area_struct *vma_merge(struct mm_struct *,
2549 struct vm_area_struct *prev, unsigned long addr, unsigned long end,
2552 extern struct anon_vma *find_mergeable_anon_vma(struct vm_area_struct *);
2553 extern int __split_vma(struct mm_struct *, struct vm_area_struct *,
2555 extern int split_vma(struct mm_struct *, struct vm_area_struct *,
2557 extern int insert_vm_struct(struct mm_struct *, struct vm_area_struct *);
2558 extern void __vma_link_rb(struct mm_struct *, struct vm_area_struct *,
2560 extern void unlink_file_vma(struct vm_area_struct *);
2561 extern struct vm_area_struct *copy_vma(struct vm_area_struct **,
2591 extern bool vma_is_special_mapping(const struct vm_area_struct *vma,
2593 extern struct vm_area_struct *_install_special_mapping(struct mm_struct *mm,
2668 extern int expand_stack(struct vm_area_struct *vma, unsigned long address);
2671 extern int expand_downwards(struct vm_area_struct *vma,
2674 extern int expand_upwards(struct vm_area_struct *vma, unsigned long address);
2680 extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr);
2681 extern struct vm_area_struct * find_vma_prev(struct mm_struct * mm, unsigned long addr,
2682 struct vm_area_struct **pprev);
2694 struct vm_area_struct *find_vma_intersection(struct mm_struct *mm, in find_vma_intersection()
2698 struct vm_area_struct *vma = find_vma(mm, start_addr); in find_vma_intersection()
2713 struct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr) in vma_lookup()
2715 struct vm_area_struct *vma = find_vma(mm, addr); in vma_lookup()
2723 static inline unsigned long vm_start_gap(struct vm_area_struct *vma) in vm_start_gap()
2735 static inline unsigned long vm_end_gap(struct vm_area_struct *vma) in vm_end_gap()
2747 static inline unsigned long vma_pages(struct vm_area_struct *vma) in vma_pages()
2753 static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm, in find_exact_vma()
2756 struct vm_area_struct *vma = find_vma(mm, vm_start); in find_exact_vma()
2764 static inline bool range_in_vma(struct vm_area_struct *vma, in range_in_vma()
2772 void vma_set_page_prot(struct vm_area_struct *vma);
2778 static inline void vma_set_page_prot(struct vm_area_struct *vma) in vma_set_page_prot()
2784 void vma_set_file(struct vm_area_struct *vma, struct file *file);
2787 unsigned long change_prot_numa(struct vm_area_struct *vma,
2791 struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr);
2792 int remap_pfn_range(struct vm_area_struct *, unsigned long addr,
2794 int remap_pfn_range_notrack(struct vm_area_struct *vma, unsigned long addr,
2796 int vm_insert_page(struct vm_area_struct *, unsigned long addr, struct page *);
2797 int vm_insert_pages(struct vm_area_struct *vma, unsigned long addr,
2799 int vm_map_pages(struct vm_area_struct *vma, struct page **pages,
2801 int vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages,
2803 vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr,
2805 vm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr,
2807 vm_fault_t vmf_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
2809 vm_fault_t vmf_insert_mixed_prot(struct vm_area_struct *vma, unsigned long addr,
2811 vm_fault_t vmf_insert_mixed_mkwrite(struct vm_area_struct *vma,
2813 int vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len);
2815 static inline vm_fault_t vmf_insert_page(struct vm_area_struct *vma, in vmf_insert_page()
2829 static inline int io_remap_pfn_range(struct vm_area_struct *vma, in io_remap_pfn_range()
2844 struct page *follow_page(struct vm_area_struct *vma, unsigned long address,
3039 extern struct vm_area_struct *get_gate_vma(struct mm_struct *mm);
3043 static inline struct vm_area_struct *get_gate_vma(struct mm_struct *mm) in get_gate_vma()
3071 const char * arch_vma_name(struct vm_area_struct *vma);
3170 struct vm_area_struct *vma,
3187 static inline bool vma_is_special_huge(const struct vm_area_struct *vma) in vma_is_special_huge()
3263 static inline int seal_check_future_write(int seals, struct vm_area_struct *vma) in seal_check_future_write()