| /linux/mm/ |
| H A D | vma.h | 14 struct vm_area_struct *vma; 15 struct vm_area_struct *adj_next; 19 struct vm_area_struct *insert; 20 struct vm_area_struct *remove; 21 struct vm_area_struct *remove2; 28 struct vm_area_struct *vmas[8]; 36 struct vm_area_struct *vma; /* The first vma to munmap */ 37 struct vm_area_struct *prev; /* vma before the munmap area */ 38 struct vm_area_struct *next; /* vma after the munmap area */ 84 struct vm_area_struct *prev; [all …]
|
| H A D | vma_init.c | 18 .freeptr_offset = offsetof(struct vm_area_struct, vm_freeptr), in vma_state_init() 23 sizeof(struct vm_area_struct), &args, in vma_state_init() 28 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm) in vm_area_alloc() 30 struct vm_area_struct *vma; in vm_area_alloc() 41 static void vm_area_init_from(const struct vm_area_struct *src, in vm_area_init_from() 42 struct vm_area_struct *dest) in vm_area_init_from() 81 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup() 82 struct vm_area_struct *new) in vma_pfnmap_track_ctx_dup() 100 static inline void vma_pfnmap_track_ctx_release(struct vm_area_struct *vma) in vma_pfnmap_track_ctx_release() 111 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup() [all …]
|
| H A D | vma.c | 28 struct vm_area_struct *prev; 29 struct vm_area_struct *next; 77 static bool vma_had_uncowed_parents(struct vm_area_struct *vma) in vma_had_uncowed_parents() 88 struct vm_area_struct *vma = merge_next ? vmg->next : vmg->prev; in is_mergeable_vma() 105 struct vm_area_struct *tgt = merge_next ? vmg->next : vmg->prev; in is_mergeable_anon_vma() 106 struct vm_area_struct *src = vmg->middle; /* existing merge case. */ in is_mergeable_anon_vma() 135 struct vm_area_struct *vma, in init_multi_vma_prep() 138 struct vm_area_struct *adjust; in init_multi_vma_prep() 139 struct vm_area_struct **remove = &vp->remove; in init_multi_vma_prep() 219 static void __vma_link_file(struct vm_area_struct *vma, in __vma_link_file() [all …]
|
| H A D | mmap_lock.c | 53 static inline int __vma_enter_locked(struct vm_area_struct *vma, in __vma_enter_locked() 93 static inline void __vma_exit_locked(struct vm_area_struct *vma, bool *detached) in __vma_exit_locked() 99 int __vma_start_write(struct vm_area_struct *vma, unsigned int mm_lock_seq, in __vma_start_write() 127 void vma_mark_detached(struct vm_area_struct *vma) in vma_mark_detached() 163 static inline struct vm_area_struct *vma_start_read(struct mm_struct *mm, in vma_start_read() 164 struct vm_area_struct *vma) in vma_start_read() 245 struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm, in lock_vma_under_rcu() 249 struct vm_area_struct *vma; in lock_vma_under_rcu() 293 static struct vm_area_struct *lock_next_vma_under_mmap_lock(struct mm_struct *mm, in lock_next_vma_under_mmap_lock() 297 struct vm_area_struct *vma; in lock_next_vma_under_mmap_lock() [all …]
|
| H A D | userfaultfd.c | 24 bool validate_dst_vma(struct vm_area_struct *dst_vma, unsigned long dst_end) in validate_dst_vma() 42 struct vm_area_struct *find_vma_and_prepare_anon(struct mm_struct *mm, in find_vma_and_prepare_anon() 45 struct vm_area_struct *vma; in find_vma_and_prepare_anon() 69 static struct vm_area_struct *uffd_lock_vma(struct mm_struct *mm, in uffd_lock_vma() 72 struct vm_area_struct *vma; in uffd_lock_vma() 99 static struct vm_area_struct *uffd_mfill_lock(struct mm_struct *dst_mm, in uffd_mfill_lock() 103 struct vm_area_struct *dst_vma; in uffd_mfill_lock() 113 static void uffd_mfill_unlock(struct vm_area_struct *vma) in uffd_mfill_unlock() 120 static struct vm_area_struct *uffd_mfill_lock(struct mm_struct *dst_mm, in uffd_mfill_lock() 124 struct vm_area_struct *dst_vma; in uffd_mfill_lock() [all …]
|
| H A D | interval_tree.c | 13 static inline unsigned long vma_start_pgoff(struct vm_area_struct *v) in vma_start_pgoff() 18 static inline unsigned long vma_last_pgoff(struct vm_area_struct *v) in vma_last_pgoff() 23 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb, 28 void vma_interval_tree_insert_after(struct vm_area_struct *node, in vma_interval_tree_insert_after() 29 struct vm_area_struct *prev, in vma_interval_tree_insert_after() 33 struct vm_area_struct *parent; in vma_interval_tree_insert_after() 43 struct vm_area_struct, shared.rb); in vma_interval_tree_insert_after() 48 struct vm_area_struct, shared.rb); in vma_interval_tree_insert_after()
|
| H A D | internal.h | 47 struct vm_area_struct *old; /* Source VMA. */ 48 struct vm_area_struct *new; /* Destination VMA. */ 165 static inline int mmap_file(struct file *file, struct vm_area_struct *vma) in mmap_file() 187 static inline void vma_close(struct vm_area_struct *vma) in vma_close() 268 struct vm_area_struct *vma, pte_t *ptep, pte_t *ptentp, in folio_pte_batch_flags() 446 struct vm_area_struct *start_vma, unsigned long floor, 452 struct vm_area_struct *vma, 456 struct vm_area_struct *vma, unsigned long addr, 965 extern long populate_vma_page_range(struct vm_area_struct *vma, 988 folio_within_range(struct folio *folio, struct vm_area_struct *vma, in folio_within_range() [all …]
|
| /linux/include/linux/ |
| H A D | userfaultfd_k.h | 115 struct vm_area_struct *dst_vma, 131 extern long uffd_wp_range(struct vm_area_struct *vma, 140 struct vm_area_struct *dst_vma, 141 struct vm_area_struct *src_vma, 145 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma, in is_mergeable_vm_userfaultfd_ctx() 162 static inline bool uffd_disable_huge_pmd_share(struct vm_area_struct *vma) in uffd_disable_huge_pmd_share() 174 static inline bool uffd_disable_fault_around(struct vm_area_struct *vma) in uffd_disable_fault_around() 179 static inline bool userfaultfd_missing(struct vm_area_struct *vma) in userfaultfd_missing() 184 static inline bool userfaultfd_wp(struct vm_area_struct *vma) in userfaultfd_wp() 189 static inline bool userfaultfd_minor(struct vm_area_struct *vma) in userfaultfd_minor() [all …]
|
| H A D | hugetlb.h | 108 struct vm_area_struct *vma; 123 void hugetlb_dup_vma_private(struct vm_area_struct *vma); 124 void clear_vma_resv_huge_pages(struct vm_area_struct *vma); 125 int move_hugetlb_page_tables(struct vm_area_struct *vma, 126 struct vm_area_struct *new_vma, 130 struct vm_area_struct *, struct vm_area_struct *); 131 void unmap_hugepage_range(struct vm_area_struct *, 135 struct vm_area_struct *vma, 142 vm_fault_t hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, 146 struct vm_area_struct *dst_vma, [all …]
|
| H A D | mmap_lock.h | 113 static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt) in vma_lock_init() 136 static inline void vma_refcount_put(struct vm_area_struct *vma) in vma_refcount_put() 156 static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int subclass) in vma_start_read_locked_nested() 175 static inline bool vma_start_read_locked(struct vm_area_struct *vma) in vma_start_read_locked() 180 static inline void vma_end_read(struct vm_area_struct *vma) in vma_end_read() 186 static inline bool __is_vma_write_locked(struct vm_area_struct *vma, unsigned int *mm_lock_seq) in __is_vma_write_locked() 198 int __vma_start_write(struct vm_area_struct *vma, unsigned int mm_lock_seq, 206 static inline void vma_start_write(struct vm_area_struct *vma) in vma_start_write() 230 int vma_start_write_killable(struct vm_area_struct *vma) in vma_start_write_killable() 239 static inline void vma_assert_write_locked(struct vm_area_struct *vma) in vma_assert_write_locked() [all …]
|
| H A D | huge_mm.h | 13 struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma); 17 struct vm_area_struct *vma); 28 bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, 30 int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, 32 int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud, 34 bool move_huge_pmd(struct vm_area_struct *vma, unsigned long old_addr, 36 int change_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, 220 static inline bool thp_vma_suitable_order(struct vm_area_struct *vma, in thp_vma_suitable_order() 245 static inline unsigned long thp_vma_suitable_orders(struct vm_area_struct *vma, in thp_vma_suitable_orders() 268 unsigned long __thp_vma_allowable_orders(struct vm_area_struct *vma, [all …]
|
| H A D | rmap.h | 84 struct vm_area_struct *vma; 155 int __anon_vma_prepare(struct vm_area_struct *); 156 void unlink_anon_vmas(struct vm_area_struct *); 157 int anon_vma_clone(struct vm_area_struct *, struct vm_area_struct *); 158 int anon_vma_fork(struct vm_area_struct *, struct vm_area_struct *); 160 static inline int anon_vma_prepare(struct vm_area_struct *vma) in anon_vma_prepare() 168 static inline void anon_vma_merge(struct vm_area_struct *vma, in anon_vma_merge() 169 struct vm_area_struct *next) in anon_vma_merge() 230 int mapcount, struct vm_area_struct *vma) in folio_set_large_mapcount() 244 int diff, struct vm_area_struct *vma) in folio_add_return_large_mapcount() [all …]
|
| H A D | mm.h | 263 struct vm_area_struct *vm_area_alloc(struct mm_struct *); 264 struct vm_area_struct *vm_area_dup(struct vm_area_struct *); 265 void vm_area_free(struct vm_area_struct *); 691 struct vm_area_struct *vma; /* Target VMA */ 741 void (*open)(struct vm_area_struct * area); 746 void (*close)(struct vm_area_struct * area); 748 int (*may_split)(struct vm_area_struct *area, unsigned long addr); 749 int (*mremap)(struct vm_area_struct *area); 755 int (*mprotect)(struct vm_area_struct *vma, unsigned long start, 761 unsigned long (*pagesize)(struct vm_area_struct * area); [all …]
|
| H A D | mempolicy.h | 122 int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst); 125 struct vm_area_struct *vma, struct mempolicy *mpol); 131 struct mempolicy *__get_vma_policy(struct vm_area_struct *vma, 133 struct mempolicy *get_vma_policy(struct vm_area_struct *vma, 135 bool vma_policy_mof(struct vm_area_struct *vma); 142 extern int huge_node(struct vm_area_struct *vma, 169 extern bool vma_migratable(struct vm_area_struct *vma); 228 static inline struct mempolicy *get_vma_policy(struct vm_area_struct *vma, in get_vma_policy() 236 vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst) in vma_dup_policy() 258 static inline int huge_node(struct vm_area_struct *vma, in huge_node()
|
| H A D | pgtable.h | 306 extern int ptep_set_access_flags(struct vm_area_struct *vma, 313 extern int pmdp_set_access_flags(struct vm_area_struct *vma, 316 extern int pudp_set_access_flags(struct vm_area_struct *vma, 320 static inline int pmdp_set_access_flags(struct vm_area_struct *vma, in pmdp_set_access_flags() 327 static inline int pudp_set_access_flags(struct vm_area_struct *vma, in pudp_set_access_flags() 373 static inline int ptep_test_and_clear_young(struct vm_area_struct *vma, in ptep_test_and_clear_young() 389 static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma, in pmdp_test_and_clear_young() 402 static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma, in pmdp_test_and_clear_young() 413 int ptep_clear_flush_young(struct vm_area_struct *vma, 419 extern int pmdp_clear_flush_young(struct vm_area_struct *vma, [all …]
|
| H A D | uprobes.h | 23 struct vm_area_struct; 198 extern int set_swbp(struct arch_uprobe *aup, struct vm_area_struct *vma, unsigned long vaddr); 199 extern int set_orig_insn(struct arch_uprobe *aup, struct vm_area_struct *vma, unsigned long vaddr); 204 extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct vm_area_struct *vma, unsigned lo… 206 extern int uprobe_write(struct arch_uprobe *auprobe, struct vm_area_struct *vma, const unsigned lon… 213 extern int uprobe_mmap(struct vm_area_struct *vma); 214 extern void uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end); 272 static inline int uprobe_mmap(struct vm_area_struct *vma) in uprobe_mmap() 277 uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end) in uprobe_munmap()
|
| /linux/tools/testing/vma/ |
| H A D | vma_internal.h | 550 struct vm_area_struct; 584 int (*success_hook)(const struct vm_area_struct *vma); 635 int (*mmap)(struct file *, struct vm_area_struct *); 648 struct vm_area_struct { struct 748 void (*open)(struct vm_area_struct * area); argument 753 void (*close)(struct vm_area_struct * area); 755 int (*may_split)(struct vm_area_struct *area, unsigned long addr); 756 int (*mremap)(struct vm_area_struct *area); 762 int (*mprotect)(struct vm_area_struct *vma, unsigned long start, 768 unsigned long (*pagesize)(struct vm_area_struct * area); [all …]
|
| /linux/include/xen/ |
| H A D | xen-ops.h | 46 int xen_remap_pfn(struct vm_area_struct *vma, unsigned long addr, 50 static inline int xen_remap_pfn(struct vm_area_struct *vma, unsigned long addr, in xen_remap_pfn() 60 struct vm_area_struct; 63 int xen_xlate_remap_gfn_array(struct vm_area_struct *vma, 69 int xen_xlate_unmap_gfn_range(struct vm_area_struct *vma, 76 static inline int xen_xlate_remap_gfn_array(struct vm_area_struct *vma, in xen_xlate_remap_gfn_array() 86 static inline int xen_xlate_unmap_gfn_range(struct vm_area_struct *vma, in xen_xlate_unmap_gfn_range() 93 int xen_remap_vma_range(struct vm_area_struct *vma, unsigned long addr, 113 static inline int xen_remap_domain_gfn_array(struct vm_area_struct *vma, in xen_remap_domain_gfn_array() 149 static inline int xen_remap_domain_mfn_array(struct vm_area_struct *vma, in xen_remap_domain_mfn_array() [all …]
|
| /linux/arch/arc/include/asm/ |
| H A D | tlbflush.h | 13 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page); 15 void local_flush_tlb_range(struct vm_area_struct *vma, 18 void local_flush_pmd_tlb_range(struct vm_area_struct *vma, unsigned long start, 32 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, 34 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long page); 39 extern void flush_pmd_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end);
|
| /linux/arch/sparc/include/asm/ |
| H A D | cachetlb_32.h | 6 struct vm_area_struct; 11 void (*cache_range)(struct vm_area_struct *, unsigned long, 13 void (*cache_page)(struct vm_area_struct *, unsigned long); 17 void (*tlb_range)(struct vm_area_struct *, unsigned long, 19 void (*tlb_page)(struct vm_area_struct *, unsigned long);
|
| /linux/arch/arm/mm/ |
| H A D | tlb.c | 9 void v4_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *); 20 void v4wb_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *); 31 void v4wbi_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *); 42 void v6wbi_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *); 53 void v7wbi_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *); 76 void fa_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *);
|
| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A D | tlbflush-radix.h | 11 struct vm_area_struct; 63 extern void radix__flush_hugetlb_tlb_range(struct vm_area_struct *vma, 69 extern void radix__flush_pmd_tlb_range(struct vm_area_struct *vma, 71 extern void radix__flush_pud_tlb_range(struct vm_area_struct *vma, 73 extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start, 79 extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); 86 extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
|
| H A D | tlbflush.h | 47 static inline void flush_pmd_tlb_range(struct vm_area_struct *vma, in flush_pmd_tlb_range() 55 static inline void flush_pud_tlb_range(struct vm_area_struct *vma, in flush_pud_tlb_range() 63 static inline void flush_hugetlb_tlb_range(struct vm_area_struct *vma, in flush_hugetlb_tlb_range() 71 static inline void flush_tlb_range(struct vm_area_struct *vma, in flush_tlb_range() 91 static inline void local_flush_tlb_page(struct vm_area_struct *vma, in local_flush_tlb_page() 120 static inline void flush_tlb_page(struct vm_area_struct *vma, in flush_tlb_page() 132 static inline void flush_tlb_fix_spurious_fault(struct vm_area_struct *vma, in flush_tlb_fix_spurious_fault()
|
| /linux/arch/sh/include/asm/ |
| H A D | cacheflush.h | 40 extern void flush_cache_page(struct vm_area_struct *vma, 42 extern void flush_cache_range(struct vm_area_struct *vma, 54 void flush_icache_pages(struct vm_area_struct *vma, struct page *page, 60 struct vm_area_struct *vma; 67 static inline void flush_anon_page(struct vm_area_struct *vma, in flush_anon_page() 84 extern void copy_to_user_page(struct vm_area_struct *vma, 88 extern void copy_from_user_page(struct vm_area_struct *vma,
|
| /linux/arch/alpha/include/asm/ |
| H A D | tlbflush.h | 29 struct vm_area_struct *vma, in ev5_flush_tlb_current_page() 84 flush_tlb_page(struct vm_area_struct *vma, unsigned long addr) in flush_tlb_page() 97 flush_tlb_range(struct vm_area_struct *vma, unsigned long start, in flush_tlb_range() 107 extern void flush_tlb_page(struct vm_area_struct *, unsigned long); 108 extern void flush_tlb_range(struct vm_area_struct *, unsigned long,
|