Home
last modified time | relevance | path

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

12345678910>>...20

/linux/mm/
H A Dvma.h21 struct vm_area_struct *vma;
22 struct vm_area_struct *adj_next;
26 struct vm_area_struct *insert;
27 struct vm_area_struct *remove;
28 struct vm_area_struct *remove2;
35 struct vm_area_struct *vmas[8];
43 struct vm_area_struct *vma; /* The first vma to munmap */
44 struct vm_area_struct *prev; /* vma before the munmap area */
45 struct vm_area_struct *next; /* vma after the munmap area */
91 struct vm_area_struct *pre
[all...]
H A Dvma_init.c22 .freeptr_offset = offsetof(struct vm_area_struct, vm_freeptr), in vma_state_init()
27 sizeof(struct vm_area_struct), &args, in vma_state_init()
32 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm) in vm_area_alloc()
34 struct vm_area_struct *vma; in vm_area_alloc()
45 static void vm_area_init_from(const struct vm_area_struct *src, in vm_area_init_from()
46 struct vm_area_struct *dest) in vm_area_init_from()
86 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup()
87 struct vm_area_struct *new) in vma_pfnmap_track_ctx_dup()
105 static inline void vma_pfnmap_track_ctx_release(struct vm_area_struct *vma) in vma_pfnmap_track_ctx_release()
116 static inline int vma_pfnmap_track_ctx_dup(struct vm_area_struct *orig, in vma_pfnmap_track_ctx_dup()
[all …]
H A Dinterval_tree.c16 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb,
21 void mapping_rmap_tree_insert(struct vm_area_struct *vma, in mapping_rmap_tree_insert()
28 void mapping_rmap_tree_insert_after(struct vm_area_struct *vma, in mapping_rmap_tree_insert_after()
29 struct vm_area_struct *prev, in mapping_rmap_tree_insert_after()
33 struct vm_area_struct *parent; in mapping_rmap_tree_insert_after()
43 struct vm_area_struct, shared.rb); in mapping_rmap_tree_insert_after()
48 struct vm_area_struct, shared.rb); in mapping_rmap_tree_insert_after()
61 void mapping_rmap_tree_remove(struct vm_area_struct *vma, in mapping_rmap_tree_remove()
67 struct vm_area_struct *
75 struct vm_area_struct *
[all …]
H A Dvma.c36 struct vm_area_struct *prev;
37 struct vm_area_struct *next;
80 static void __vma_set_range(struct vm_area_struct *vma, unsigned long start, in __vma_set_range()
87 static void vma_set_range(struct vm_area_struct *vma, unsigned long start, in vma_set_range()
96 static bool vma_is_fork_child(struct vm_area_struct *vma) in vma_is_fork_child()
108 struct vm_area_struct *vma = merge_next ? vmg->next : vmg->prev; in is_mergeable_vma()
130 struct vm_area_struct *tgt = merge_next ? vmg->next : vmg->prev; in is_mergeable_anon_vma()
131 struct vm_area_struct *src = vmg->middle; /* existing merge case. */ in is_mergeable_anon_vma()
144 struct vm_area_struct *copied_from = vmg->copied_from; in is_mergeable_anon_vma()
168 struct vm_area_struct *vm in init_multi_vma_prep()
[all...]
H A Dinternal.h44 void folio_add_lru_vma(struct folio *folio, struct vm_area_struct *vma);
118 struct vm_area_struct *old; /* Source VMA. */
119 struct vm_area_struct *new; /* Destination VMA. */
236 static inline int mmap_file(struct file *file, struct vm_area_struct *vma) in mmap_file()
258 static inline void vma_close(struct vm_area_struct *vma) in vma_close()
276 bool cond_install_uffd_wp_ptes(struct vm_area_struct *vma,
333 int anon_vma_clone(struct vm_area_struct *dst, struct vm_area_struct *src,
335 int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma);
336 int __anon_vma_prepare(struct vm_area_struct *vma);
337 void unlink_anon_vmas(struct vm_area_struct *vma);
[all …]
/linux/tools/testing/vma/include/
H A Dstubs.h12 struct vm_area_struct;
67 static inline void vma_numab_state_init(struct vm_area_struct *vma) in vma_numab_state_init()
71 static inline void vma_numab_state_free(struct vm_area_struct *vma) in vma_numab_state_free()
75 static inline void dup_anon_vma_name(struct vm_area_struct *orig_vma, in dup_anon_vma_name()
76 struct vm_area_struct *new_vma) in dup_anon_vma_name()
80 static inline void free_anon_vma_name(struct vm_area_struct *vma) in free_anon_vma_name()
89 static inline int mmap_action_complete(struct vm_area_struct *vma, in mmap_action_complete()
96 static inline void fixup_hugetlb_reservations(struct vm_area_struct *vma) in fixup_hugetlb_reservations()
115 static inline int remap_pfn_range_complete(struct vm_area_struct *vma, unsigned long addr, in remap_pfn_range_complete()
143 static inline int userfaultfd_unmap_prep(struct vm_area_struct *vm
430 hugetlb_split(struct vm_area_struct *,unsigned long) hugetlb_split() argument
[all...]
H A Ddup.h6 struct vm_area_struct;
7 static inline void vma_start_write(struct vm_area_struct *vma);
49 int (*mmap)(struct file *, struct vm_area_struct *);
539 struct vm_area_struct { struct
646 void (*open)(struct vm_area_struct *vma); argument
651 void (*close)(struct vm_area_struct *vma);
670 int (*may_split)(struct vm_area_struct *vma, unsigned long addr);
671 int (*mremap)(struct vm_area_struct *vma);
677 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
683 unsigned long (*pagesize)(struct vm_area_struct *vma);
[all …]
H A Dcustom.h35 static inline void unlink_anon_vmas(struct vm_area_struct *vma)
41 static inline void vma_start_write(struct vm_area_struct *vma)
48 int vma_start_write_killable(struct vm_area_struct *vma) in unlink_anon_vmas()
55 static inline int anon_vma_clone(struct vm_area_struct *dst, struct vm_area_struct *src, in vma_start_write()
67 static inline int __anon_vma_prepare(struct vm_area_struct *vma) in anon_vma_clone()
80 static inline int anon_vma_prepare(struct vm_area_struct *vma) in __anon_vma_prepare()
88 static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt) in __anon_vma_prepare()
94 static inline unsigned long vma_kernel_pagesize(struct vm_area_struct *vma) in anon_vma_prepare()
/linux/include/linux/
H A Dmmap_lock.h150 static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt) in vma_lock_init()
192 __vma_refcount_put_return(struct vm_area_struct *vma) in __vma_refcount_put_return()
210 static inline void vma_refcount_put(struct vm_area_struct *vma) in vma_refcount_put()
238 static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int subclass) in vma_start_read_locked_nested()
257 static inline bool vma_start_read_locked(struct vm_area_struct *vma) in vma_start_read_locked()
262 static inline void vma_end_read(struct vm_area_struct *vma) in vma_end_read()
267 static inline unsigned int __vma_raw_mm_seqnum(struct vm_area_struct *vma) in __vma_raw_mm_seqnum()
282 static inline bool __is_vma_write_locked(struct vm_area_struct *vma) in __is_vma_write_locked()
291 int __vma_start_write(struct vm_area_struct *vma, int state);
298 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;
164 int mapcount, struct vm_area_struct *vma) in folio_set_large_mapcount()
178 int diff, struct vm_area_struct *vma) in folio_add_return_large_mapcount()
228 int diff, struct vm_area_struct *vma) in folio_sub_return_large_mapcount()
279 struct vm_area_struct *vma) in folio_set_large_mapcount()
286 int diff, struct vm_area_struct *vma) in folio_add_large_mapcount()
292 int diff, struct vm_area_struct *vma) in folio_add_return_large_mapcount()
298 int diff, struct vm_area_struct *vma) in folio_sub_large_mapcount()
304 int diff, struct vm_area_struct *vma) in folio_sub_return_large_mapcount()
403 void folio_move_anon_rmap(struct folio *, struct vm_area_struct *);
[all …]
H A Dmm.h264 struct vm_area_struct *vm_area_alloc(struct mm_struct *);
265 struct vm_area_struct *vm_area_dup(struct vm_area_struct *);
266 void vm_area_free(struct vm_area_struct *);
755 struct vm_area_struct *vma; /* Target VMA */
812 void (*open)(struct vm_area_struct *vma);
817 void (*close)(struct vm_area_struct *vma);
836 int (*may_split)(struct vm_area_struct *vma, unsigned long addr);
837 int (*mremap)(struct vm_area_struct *vma);
843 int (*mprotect)(struct vm_area_struct *vma, unsigned long start,
849 unsigned long (*pagesize)(struct vm_area_struct *vma);
[all …]
H A Dmempolicy.h123 int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst);
126 struct vm_area_struct *vma, struct mempolicy *mpol);
132 struct mempolicy *__get_vma_policy(struct vm_area_struct *vma,
134 struct mempolicy *get_vma_policy(struct vm_area_struct *vma,
136 bool vma_policy_mof(struct vm_area_struct *vma);
143 extern int huge_node(struct vm_area_struct *vma,
170 extern bool vma_migratable(struct vm_area_struct *vma);
229 static inline struct mempolicy *get_vma_policy(struct vm_area_struct *vma, in get_vma_policy()
237 vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst) in vma_dup_policy()
259 static inline int huge_node(struct vm_area_struct *vma, in huge_node()
/linux/tools/testing/vma/
H A Dshared.h94 struct vm_area_struct *merge_existing(struct vma_merge_struct *vmg);
101 int attach_vma(struct mm_struct *mm, struct vm_area_struct *vma);
104 static inline void dummy_close(struct vm_area_struct *)
109 struct vm_area_struct *alloc_vma(struct mm_struct *mm,
114 void detach_free_vma(struct vm_area_struct *vma);
117 struct vm_area_struct *alloc_and_link_vma(struct mm_struct *mm,
134 bool vma_write_started(struct vm_area_struct *vma);
136 void __vma_set_dummy_anon_vma(struct vm_area_struct *vma,
140 void vma_set_dummy_anon_vma(struct vm_area_struct *vma,
72 dummy_close(struct vm_area_struct *) dummy_close() argument
H A Dshared.c15 struct vm_area_struct *alloc_vma(struct mm_struct *mm, in alloc_vma()
19 struct vm_area_struct *vma = vm_area_alloc(mm); in alloc_vma()
34 void detach_free_vma(struct vm_area_struct *vma) in detach_free_vma()
40 struct vm_area_struct *alloc_and_link_vma(struct mm_struct *mm, in alloc_and_link_vma()
44 struct vm_area_struct *vma = alloc_vma(mm, start, end, pgoff, vma_flags); in alloc_and_link_vma()
72 struct vm_area_struct *vma; in cleanup_mm()
89 bool vma_write_started(struct vm_area_struct *vma) in vma_write_started()
100 void __vma_set_dummy_anon_vma(struct vm_area_struct *vma, in __vma_set_dummy_anon_vma()
109 void vma_set_dummy_anon_vma(struct vm_area_struct *vma, in vma_set_dummy_anon_vma()
/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/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/powerpc/include/asm/book3s/64/
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/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*,
/linux/arch/nios2/include/asm/
H A Dcacheflush.h26 extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
28 extern void flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr,
36 void flush_icache_pages(struct vm_area_struct *vma, struct page *page,
44 extern void copy_to_user_page(struct vm_area_struct *vma, struct page *page,
47 extern void copy_from_user_page(struct vm_area_struct *vma, struct page *page,
/linux/drivers/gpu/drm/i915/
H A Di915_mm.h12 struct vm_area_struct;
17 int remap_io_mapping(struct vm_area_struct *vma,
22 int remap_io_mapping(struct vm_area_struct *vma, in remap_io_mapping()
31 int remap_io_sg(struct vm_area_struct *vma,
/linux/mm/damon/tests/
H A Dvaddr-kunit.h13 static int __link_vmas(struct maple_tree *mt, struct vm_area_struct *vmas, in __link_vmas()
67 static struct vm_area_struct vmas[] = { in damon_test_three_regions_in_vmas()
68 (struct vm_area_struct) {.vm_start = 10, .vm_end = 20}, in damon_test_three_regions_in_vmas()
69 (struct vm_area_struct) {.vm_start = 20, .vm_end = 25}, in damon_test_three_regions_in_vmas()
70 (struct vm_area_struct) {.vm_start = 200, .vm_end = 210}, in damon_test_three_regions_in_vmas()
71 (struct vm_area_struct) {.vm_start = 210, .vm_end = 220}, in damon_test_three_regions_in_vmas()
72 (struct vm_area_struct) {.vm_start = 300, .vm_end = 305}, in damon_test_three_regions_in_vmas()
73 (struct vm_area_struct) {.vm_start = 307, .vm_end = 330}, in damon_test_three_regions_in_vmas()
/linux/arch/openrisc/include/asm/
H A Dtlbflush.h32 extern void local_flush_tlb_page(struct vm_area_struct *vma,
34 extern void local_flush_tlb_range(struct vm_area_struct *vma,
46 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr);
47 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,

12345678910>>...20