Home
last modified time | relevance | path

Searched refs:vm_area_struct (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/linux/mm/
H A Dvma.h14 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 Dvma_init.c18 .freeptr_offset = offsetof(struct vm_area_struct, vm_freeptr), in vma_state_init()
22 sizeof(struct vm_area_struct), &args, in vma_state_init()
27 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm) in vm_area_alloc()
29 struct vm_area_struct *vma; in vm_area_alloc()
40 static void vm_area_init_from(const struct vm_area_struct *src, in vm_area_init_from()
41 struct vm_area_struct *dest) in vm_area_init_from()
80 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup()
81 struct vm_area_struct *new) in vma_pfnmap_track_ctx_dup()
99 static inline void vma_pfnmap_track_ctx_release(struct vm_area_struct *vma) in vma_pfnmap_track_ctx_release()
110 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup()
[all …]
H A Dvma.c28 struct vm_area_struct *prev;
29 struct vm_area_struct *next;
75 static bool vma_had_uncowed_parents(struct vm_area_struct *vma) in vma_had_uncowed_parents()
86 struct vm_area_struct *vma = merge_next ? vmg->next : vmg->prev; in is_mergeable_vma()
111 struct vm_area_struct *tgt = merge_next ? vmg->next : vmg->prev; in is_mergeable_anon_vma()
112 struct vm_area_struct *src = vmg->middle; /* exisitng merge case. */ in is_mergeable_anon_vma()
141 struct vm_area_struct *vma, in init_multi_vma_prep()
144 struct vm_area_struct *adjust; in init_multi_vma_prep()
145 struct vm_area_struct **remove = &vp->remove; in init_multi_vma_prep()
225 static void __vma_link_file(struct vm_area_struct *vma, in __vma_link_file()
[all …]
H A Dmmap_lock.c48 static inline bool __vma_enter_locked(struct vm_area_struct *vma, bool detaching) in __vma_enter_locked()
72 static inline void __vma_exit_locked(struct vm_area_struct *vma, bool *detached) in __vma_exit_locked()
78 void __vma_start_write(struct vm_area_struct *vma, unsigned int mm_lock_seq) in __vma_start_write()
106 void vma_mark_detached(struct vm_area_struct *vma) in vma_mark_detached()
135 struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm, in lock_vma_under_rcu()
139 struct vm_area_struct *vma; in lock_vma_under_rcu()
181 static struct vm_area_struct *lock_next_vma_under_mmap_lock(struct mm_struct *mm, in lock_next_vma_under_mmap_lock()
185 struct vm_area_struct *vma; in lock_next_vma_under_mmap_lock()
206 struct vm_area_struct *lock_next_vma(struct mm_struct *mm, in lock_next_vma()
210 struct vm_area_struct *vma; in lock_next_vma()
[all …]
H A Duserfaultfd.c24 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 Dinterval_tree.c13 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()
/linux/include/linux/
H A Duserfaultfd_k.h115 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,
162 static inline bool uffd_disable_huge_pmd_share(struct vm_area_struct *vma)
174 static inline bool uffd_disable_fault_around(struct vm_area_struct *vma)
179 static inline bool userfaultfd_missing(struct vm_area_struct *vma) in uffd_disable_fault_around()
184 static inline bool userfaultfd_wp(struct vm_area_struct *vma) in userfaultfd_missing()
189 static inline bool userfaultfd_minor(struct vm_area_struct *vm in userfaultfd_wp()
[all...]
H A Dhugetlb.h108 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 Dmmap_lock.h113 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()
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()
241 static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int subclass) in vma_start_read_locked_nested()
260 static inline bool vma_start_read_locked(struct vm_area_struct *vma) in vma_start_read_locked()
265 static inline void vma_end_read(struct vm_area_struct *vma) in vma_end_read()
271 static bool __is_vma_write_locked(struct vm_area_struct *vma, unsigned int *mm_lock_seq) in __is_vma_write_locked()
283 void __vma_start_write(struct vm_area_struct *vma, unsigned int mm_lock_seq);
290 static inline void vma_start_write(struct vm_area_struct *vma) in vma_start_write()
[all …]
H A Drmap.h84 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 Dmm.h234 struct vm_area_struct *vm_area_alloc(struct mm_struct *);
235 struct vm_area_struct *vm_area_dup(struct vm_area_struct *);
236 void vm_area_free(struct vm_area_struct *);
537 struct vm_area_struct *vma; /* Target VMA */
587 void (*open)(struct vm_area_struct * area);
592 void (*close)(struct vm_area_struct * area);
594 int (*may_split)(struct vm_area_struct *area, unsigned long addr);
595 int (*mremap)(struct vm_area_struct *area);
601 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
607 unsigned long (*pagesize)(struct vm_area_struct * area);
[all …]
H A Dmempolicy.h122 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 Dpgtable.h306 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 Duprobes.h22 struct vm_area_struct;
191 extern int set_swbp(struct arch_uprobe *aup, struct vm_area_struct *vma, unsigned long vaddr);
192 extern int set_orig_insn(struct arch_uprobe *aup, struct vm_area_struct *vma, unsigned long vaddr);
197 extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct vm_area_struct *vma, unsigned lo…
202 extern int uprobe_mmap(struct vm_area_struct *vma);
203 extern void uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end);
256 static inline int uprobe_mmap(struct vm_area_struct *vma) in uprobe_mmap()
261 uprobe_munmap(struct vm_area_struct *vma, unsigned long start, unsigned long end) in uprobe_munmap()
/linux/tools/testing/vma/
H A Dvma_internal.h266 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,
[all …]
/linux/include/xen/
H A Dxen-ops.h45 int xen_remap_pfn(struct vm_area_struct *vma, unsigned long addr,
49 static inline int xen_remap_pfn(struct vm_area_struct *vma, unsigned long addr, in xen_remap_pfn()
59 struct vm_area_struct;
62 int xen_xlate_remap_gfn_array(struct vm_area_struct *vma,
68 int xen_xlate_unmap_gfn_range(struct vm_area_struct *vma,
75 static inline int xen_xlate_remap_gfn_array(struct vm_area_struct *vma, in xen_xlate_remap_gfn_array()
85 static inline int xen_xlate_unmap_gfn_range(struct vm_area_struct *vma, in xen_xlate_unmap_gfn_range()
92 int xen_remap_vma_range(struct vm_area_struct *vma, unsigned long addr,
112 static inline int xen_remap_domain_gfn_array(struct vm_area_struct *vma, in xen_remap_domain_gfn_array()
148 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 Dtlbflush.h13 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 Dcachetlb_32.h6 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 Dtlb.c9 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 Dtlbflush-radix.h11 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 Dtlbflush.h47 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 Dcacheflush.h40 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 Dtlbflush.h29 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,
/linux/arch/powerpc/include/asm/nohash/
H A Dtlbflush.h26 struct vm_area_struct;
31 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
43 static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in local_flush_tlb_page()
66 extern void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
75 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
/linux/arch/xtensa/include/asm/
H A Dcacheflush.h99 void flush_cache_range(struct vm_area_struct*, ulong, ulong);
101 void flush_cache_page(struct vm_area_struct*,
136 void local_flush_cache_range(struct vm_area_struct *vma,
138 void local_flush_cache_page(struct vm_area_struct *vma,
158 extern void copy_to_user_page(struct vm_area_struct*, struct page*,
160 extern void copy_from_user_page(struct vm_area_struct*, struct page*,

12345678910>>...24