Lines Matching refs:vm_area_struct

75 		struct vm_area_struct *vma, struct vm_area_struct *prev,
126 void vma_set_page_prot(struct vm_area_struct *vma) in vma_set_page_prot()
143 static void __remove_shared_vm_struct(struct vm_area_struct *vma, in __remove_shared_vm_struct()
160 void unlink_file_vma(struct vm_area_struct *vma) in unlink_file_vma()
175 static struct vm_area_struct *remove_vma(struct vm_area_struct *vma) in remove_vma()
177 struct vm_area_struct *next = vma->vm_next; in remove_vma()
196 struct vm_area_struct *next; in SYSCALL_DEFINE1()
266 static long vma_compute_subtree_gap(struct vm_area_struct *vma) in vma_compute_subtree_gap()
286 struct vm_area_struct, vm_rb)->rb_subtree_gap; in vma_compute_subtree_gap()
292 struct vm_area_struct, vm_rb)->rb_subtree_gap; in vma_compute_subtree_gap()
308 struct vm_area_struct *vma; in browse_rb()
309 vma = rb_entry(nd, struct vm_area_struct, vm_rb); in browse_rb()
348 static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore) in validate_mm_rb()
353 struct vm_area_struct *vma; in validate_mm_rb()
354 vma = rb_entry(nd, struct vm_area_struct, vm_rb); in validate_mm_rb()
366 struct vm_area_struct *vma = mm->mmap; in validate_mm()
405 RB_DECLARE_CALLBACKS(static, vma_gap_callbacks, struct vm_area_struct, vm_rb, in RB_DECLARE_CALLBACKS() argument
413 static void vma_gap_update(struct vm_area_struct *vma) in RB_DECLARE_CALLBACKS()
422 static inline void vma_rb_insert(struct vm_area_struct *vma, in vma_rb_insert()
431 static void __vma_rb_erase(struct vm_area_struct *vma, struct rb_root *root) in __vma_rb_erase()
441 static __always_inline void vma_rb_erase_ignore(struct vm_area_struct *vma, in vma_rb_erase_ignore()
443 struct vm_area_struct *ignore) in vma_rb_erase_ignore()
455 static __always_inline void vma_rb_erase(struct vm_area_struct *vma, in vma_rb_erase()
482 anon_vma_interval_tree_pre_update_vma(struct vm_area_struct *vma) in anon_vma_interval_tree_pre_update_vma()
491 anon_vma_interval_tree_post_update_vma(struct vm_area_struct *vma) in anon_vma_interval_tree_post_update_vma()
500 unsigned long end, struct vm_area_struct **pprev, in find_vma_links()
509 struct vm_area_struct *vma_tmp; in find_vma_links()
512 vma_tmp = rb_entry(__rb_parent, struct vm_area_struct, vm_rb); in find_vma_links()
527 *pprev = rb_entry(rb_prev, struct vm_area_struct, vm_rb); in find_vma_links()
537 struct vm_area_struct *vma; in count_vma_pages_range()
561 void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, in __vma_link_rb()
585 static void __vma_link_file(struct vm_area_struct *vma) in __vma_link_file()
605 __vma_link(struct mm_struct *mm, struct vm_area_struct *vma, in __vma_link()
606 struct vm_area_struct *prev, struct rb_node **rb_link, in __vma_link()
613 static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma, in vma_link()
614 struct vm_area_struct *prev, struct rb_node **rb_link, in vma_link()
638 static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) in __insert_vm_struct()
640 struct vm_area_struct *prev; in __insert_vm_struct()
651 struct vm_area_struct *vma, in __vma_unlink_common()
652 struct vm_area_struct *prev, in __vma_unlink_common()
654 struct vm_area_struct *ignore) in __vma_unlink_common()
656 struct vm_area_struct *next; in __vma_unlink_common()
677 struct vm_area_struct *vma, in __vma_unlink_prev()
678 struct vm_area_struct *prev) in __vma_unlink_prev()
690 int __vma_adjust(struct vm_area_struct *vma, unsigned long start, in __vma_adjust()
691 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert, in __vma_adjust()
692 struct vm_area_struct *expand) in __vma_adjust()
695 struct vm_area_struct *next = vma->vm_next, *orig_vma = vma; in __vma_adjust()
705 struct vm_area_struct *exporter = NULL, *importer = NULL; in __vma_adjust()
983 static inline int is_mergeable_vma(struct vm_area_struct *vma, in is_mergeable_vma()
1008 struct vm_area_struct *vma) in is_mergeable_anon_vma()
1032 can_vma_merge_before(struct vm_area_struct *vma, unsigned long vm_flags, in can_vma_merge_before()
1053 can_vma_merge_after(struct vm_area_struct *vma, unsigned long vm_flags, in can_vma_merge_after()
1108 struct vm_area_struct *vma_merge(struct mm_struct *mm, in vma_merge()
1109 struct vm_area_struct *prev, unsigned long addr, in vma_merge()
1116 struct vm_area_struct *area, *next; in vma_merge()
1214 static int anon_vma_compatible(struct vm_area_struct *a, struct vm_area_struct *b) in anon_vma_compatible()
1245 …struct anon_vma *reusable_anon_vma(struct vm_area_struct *old, struct vm_area_struct *a, struct vm… in reusable_anon_vma()
1264 struct anon_vma *find_mergeable_anon_vma(struct vm_area_struct *vma) in find_mergeable_anon_vma()
1267 struct vm_area_struct *near; in find_mergeable_anon_vma()
1411 struct vm_area_struct *vma = find_vma(mm, addr); in do_mmap()
1629 int vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot) in vma_wants_writenotify()
1682 struct vm_area_struct *vma, *prev; in mmap_region()
1854 struct vm_area_struct *vma; in unmapped_area()
1874 vma = rb_entry(mm->mm_rb.rb_node, struct vm_area_struct, vm_rb); in unmapped_area()
1882 struct vm_area_struct *left = in unmapped_area()
1884 struct vm_area_struct, vm_rb); in unmapped_area()
1902 struct vm_area_struct *right = in unmapped_area()
1904 struct vm_area_struct, vm_rb); in unmapped_area()
1917 struct vm_area_struct, vm_rb); in unmapped_area()
1949 struct vm_area_struct *vma; in unmapped_area_topdown()
1978 vma = rb_entry(mm->mm_rb.rb_node, struct vm_area_struct, vm_rb); in unmapped_area_topdown()
1986 struct vm_area_struct *right = in unmapped_area_topdown()
1988 struct vm_area_struct, vm_rb); in unmapped_area_topdown()
2006 struct vm_area_struct *left = in unmapped_area_topdown()
2008 struct vm_area_struct, vm_rb); in unmapped_area_topdown()
2021 struct vm_area_struct, vm_rb); in unmapped_area_topdown()
2062 struct vm_area_struct *vma, *prev; in arch_get_unmapped_area()
2099 struct vm_area_struct *vma, *prev; in arch_get_unmapped_area_topdown()
2191 struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr) in find_vma()
2194 struct vm_area_struct *vma; in find_vma()
2204 struct vm_area_struct *tmp; in find_vma()
2206 tmp = rb_entry(rb_node, struct vm_area_struct, vm_rb); in find_vma()
2227 struct vm_area_struct *
2229 struct vm_area_struct **pprev) in find_vma_prev()
2231 struct vm_area_struct *vma; in find_vma_prev()
2240 *pprev = rb_entry(rb_node, struct vm_area_struct, vm_rb); in find_vma_prev()
2252 static int acct_stack_growth(struct vm_area_struct *vma, in acct_stack_growth()
2298 int expand_upwards(struct vm_area_struct *vma, unsigned long address) in expand_upwards()
2301 struct vm_area_struct *next; in expand_upwards()
2389 int expand_downwards(struct vm_area_struct *vma, in expand_downwards()
2393 struct vm_area_struct *prev; in expand_downwards()
2481 int expand_stack(struct vm_area_struct *vma, unsigned long address) in expand_stack()
2486 struct vm_area_struct *
2489 struct vm_area_struct *vma, *prev; in find_extend_vma()
2502 int expand_stack(struct vm_area_struct *vma, unsigned long address) in expand_stack()
2507 struct vm_area_struct *
2510 struct vm_area_struct *vma; in find_extend_vma()
2538 static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma) in remove_vma_list()
2562 struct vm_area_struct *vma, struct vm_area_struct *prev, in unmap_region()
2565 struct vm_area_struct *next = prev ? prev->vm_next : mm->mmap; in unmap_region()
2582 detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma, in detach_vmas_to_be_unmapped()
2583 struct vm_area_struct *prev, unsigned long end) in detach_vmas_to_be_unmapped()
2585 struct vm_area_struct **insertion_point; in detach_vmas_to_be_unmapped()
2586 struct vm_area_struct *tail_vma = NULL; in detach_vmas_to_be_unmapped()
2612 int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma, in __split_vma()
2615 struct vm_area_struct *new; in __split_vma()
2676 int split_vma(struct mm_struct *mm, struct vm_area_struct *vma, in split_vma()
2694 struct vm_area_struct *vma, *prev, *last; in do_munmap()
2767 struct vm_area_struct *tmp = vma; in do_munmap()
2822 struct vm_area_struct *vma; in SYSCALL_DEFINE5()
2854 struct vm_area_struct *next; in SYSCALL_DEFINE5()
2882 struct vm_area_struct *tmp; in SYSCALL_DEFINE5()
2931 struct vm_area_struct *vma, *prev; in do_brk_flags()
3043 struct vm_area_struct *vma; in exit_mmap()
3113 int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) in insert_vm_struct()
3115 struct vm_area_struct *prev; in insert_vm_struct()
3150 struct vm_area_struct *copy_vma(struct vm_area_struct **vmap, in copy_vma()
3154 struct vm_area_struct *vma = *vmap; in copy_vma()
3157 struct vm_area_struct *new_vma, *prev; in copy_vma()
3271 static void special_mapping_close(struct vm_area_struct *vma) in special_mapping_close()
3275 static const char *special_mapping_name(struct vm_area_struct *vma) in special_mapping_name()
3280 static int special_mapping_mremap(struct vm_area_struct *new_vma) in special_mapping_mremap()
3307 struct vm_area_struct *vma = vmf->vma; in special_mapping_fault()
3335 static struct vm_area_struct *__install_special_mapping( in __install_special_mapping()
3342 struct vm_area_struct *vma; in __install_special_mapping()
3372 bool vma_is_special_mapping(const struct vm_area_struct *vma, in vma_is_special_mapping()
3389 struct vm_area_struct *_install_special_mapping( in _install_special_mapping()
3402 struct vm_area_struct *vma = __install_special_mapping( in install_special_mapping()
3491 struct vm_area_struct *vma; in mm_take_all_locks()
3571 struct vm_area_struct *vma; in mm_drop_all_locks()