Lines Matching refs:vm_area_struct
266 struct vm_area_struct;
293 int (*mmap)(struct file *, struct vm_area_struct *);
306 struct vm_area_struct { struct
406 void (*open)(struct vm_area_struct * area); argument
411 void (*close)(struct vm_area_struct * area);
413 int (*may_split)(struct vm_area_struct *area, unsigned long addr);
414 int (*mremap)(struct vm_area_struct *area);
420 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
426 unsigned long (*pagesize)(struct vm_area_struct * area);
439 int (*access)(struct vm_area_struct *vma, unsigned long addr,
445 const char *(*name)(struct vm_area_struct *vma);
455 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
467 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
475 struct page *(*find_special_page)(struct vm_area_struct *vma,
491 struct vm_area_struct *old; /* Source VMA. */
492 struct vm_area_struct *new; /* Destination VMA. */
592 static inline bool vma_is_shared_maywrite(struct vm_area_struct *vma) in vma_is_shared_maywrite()
597 static inline struct vm_area_struct *vma_next(struct vma_iterator *vmi) in vma_next()
611 static inline void vma_assert_attached(struct vm_area_struct *vma) in vma_assert_attached()
616 static inline void vma_assert_detached(struct vm_area_struct *vma) in vma_assert_detached()
621 static inline void vma_assert_write_locked(struct vm_area_struct *);
622 static inline void vma_mark_attached(struct vm_area_struct *vma) in vma_mark_attached()
629 static inline void vma_mark_detached(struct vm_area_struct *vma) in vma_mark_detached()
646 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
733 static inline void vma_set_range(struct vm_area_struct *vma, in vma_set_range()
743 struct vm_area_struct *vma_find(struct vma_iterator *vmi, unsigned long max) in vma_find()
760 static inline struct vm_area_struct *find_vma_intersection(struct mm_struct *mm, in find_vma_intersection()
771 struct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr) in vma_lookup()
776 static inline struct vm_area_struct *vma_prev(struct vma_iterator *vmi) in vma_prev()
786 static inline bool vma_is_anonymous(struct vm_area_struct *vma) in vma_is_anonymous()
795 static inline struct vm_area_struct *
797 struct vm_area_struct **pprev) in find_vma_prev()
799 struct vm_area_struct *vma; in find_vma_prev()
819 static inline struct anon_vma_name *anon_vma_name(struct vm_area_struct *vma) in anon_vma_name()
824 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma, in is_mergeable_vm_userfaultfd_ctx()
840 static inline unsigned long vma_pages(struct vm_area_struct *vma) in vma_pages()
870 struct vm_area_struct *vma, unsigned long start_addr, in unmap_vmas()
884 struct vm_area_struct *vma, unsigned long floor, in free_pgtables()
912 static inline int vma_dup_policy(struct vm_area_struct *, struct vm_area_struct *) in vma_dup_policy() argument
917 static inline int anon_vma_clone(struct vm_area_struct *dst, struct vm_area_struct *src) in anon_vma_clone()
928 static inline void vma_start_write(struct vm_area_struct *vma) in vma_start_write()
934 static inline void vma_adjust_trans_huge(struct vm_area_struct *vma, in vma_adjust_trans_huge()
937 struct vm_area_struct *next) in vma_adjust_trans_huge()
945 static inline void hugetlb_split(struct vm_area_struct *, unsigned long) {} in hugetlb_split() argument
953 struct vm_area_struct *vma_iter_next_range(struct vma_iterator *vmi) in vma_iter_next_range()
962 static inline void vma_interval_tree_insert(struct vm_area_struct *, in vma_interval_tree_insert() argument
967 static inline void vma_interval_tree_remove(struct vm_area_struct *, in vma_interval_tree_remove() argument
986 static inline void uprobe_mmap(struct vm_area_struct *) in uprobe_mmap() argument
990 static inline void uprobe_munmap(struct vm_area_struct *vma, in uprobe_munmap()
1006 static inline void vma_assert_write_locked(struct vm_area_struct *) in vma_assert_write_locked() argument
1010 static inline void unlink_anon_vmas(struct vm_area_struct *vma) in unlink_anon_vmas()
1024 static inline void anon_vma_merge(struct vm_area_struct *, in anon_vma_merge() argument
1025 struct vm_area_struct *) in anon_vma_merge()
1029 static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, in userfaultfd_unmap_prep()
1088 static inline void khugepaged_enter_vma(struct vm_area_struct *vma, in khugepaged_enter_vma()
1100 static inline bool is_vm_hugetlb_page(struct vm_area_struct *) in is_vm_hugetlb_page() argument
1105 static inline bool vma_soft_dirty_enabled(struct vm_area_struct *) in vma_soft_dirty_enabled() argument
1110 static inline bool userfaultfd_wp(struct vm_area_struct *) in userfaultfd_wp() argument
1152 static inline void vm_flags_init(struct vm_area_struct *vma, in vm_flags_init()
1158 static inline void vm_flags_set(struct vm_area_struct *vma, in vm_flags_set()
1165 static inline void vm_flags_clear(struct vm_area_struct *vma, in vm_flags_clear()
1172 static inline int shmem_zero_setup(struct vm_area_struct *) in shmem_zero_setup() argument
1177 static inline void vma_set_anonymous(struct vm_area_struct *vma) in vma_set_anonymous()
1182 static inline void ksm_add_vma(struct vm_area_struct *) in ksm_add_vma() argument
1186 static inline void perf_event_mmap(struct vm_area_struct *) in perf_event_mmap() argument
1190 static inline bool vma_is_dax(struct vm_area_struct *) in vma_is_dax() argument
1195 static inline struct vm_area_struct *get_gate_vma(struct mm_struct *) in get_gate_vma()
1200 bool vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot);
1203 static inline void vma_set_page_prot(struct vm_area_struct *vma) in vma_set_page_prot()
1225 static inline void vma_close(struct vm_area_struct *) in vma_close() argument
1229 static inline int mmap_file(struct file *, struct vm_area_struct *) in mmap_file() argument
1234 static inline unsigned long stack_guard_start_gap(struct vm_area_struct *vma) in stack_guard_start_gap()
1246 static inline unsigned long vm_start_gap(struct vm_area_struct *vma) in vm_start_gap()
1257 static inline unsigned long vm_end_gap(struct vm_area_struct *vma) in vm_end_gap()
1275 static inline bool vma_is_accessible(struct vm_area_struct *vma) in vma_is_accessible()
1302 static inline int __anon_vma_prepare(struct vm_area_struct *vma) in __anon_vma_prepare()
1315 static inline int anon_vma_prepare(struct vm_area_struct *vma) in anon_vma_prepare()
1419 static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt) in vma_lock_init()
1425 static inline void vma_numab_state_init(struct vm_area_struct *vma) in vma_numab_state_init()
1430 static inline void vma_numab_state_free(struct vm_area_struct *vma) in vma_numab_state_free()
1435 static inline void dup_anon_vma_name(struct vm_area_struct *orig_vma, in dup_anon_vma_name()
1436 struct vm_area_struct *new_vma) in dup_anon_vma_name()
1442 static inline void free_anon_vma_name(struct vm_area_struct *vma) in free_anon_vma_name()
1448 static inline void set_vma_from_desc(struct vm_area_struct *vma,
1451 static inline struct vm_area_desc *vma_to_desc(struct vm_area_struct *vma,
1455 struct vm_area_struct *vma) in compat_vma_mmap_prepare()
1483 static inline int vfs_mmap(struct file *file, struct vm_area_struct *vma) in vfs_mmap()
1496 static inline void fixup_hugetlb_reservations(struct vm_area_struct *vma) in fixup_hugetlb_reservations()
1501 static inline void vma_set_file(struct vm_area_struct *vma, struct file *file) in vma_set_file()