| /linux-6.15/arch/powerpc/kernel/ |
| H A D | vdso.c | 45 static int vdso_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma, in vdso_mremap() argument 48 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vdso_mremap() 53 current->mm->context.vdso = (void __user *)new_vma->vm_start; in vdso_mremap() 58 static int vdso32_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso32_mremap() argument 60 return vdso_mremap(sm, new_vma, &vdso32_end - &vdso32_start); in vdso32_mremap() 63 static int vdso64_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso64_mremap() argument 65 return vdso_mremap(sm, new_vma, &vdso64_end - &vdso64_start); in vdso64_mremap()
|
| /linux-6.15/arch/x86/entry/vdso/ |
| H A D | vma.c | 66 struct vm_area_struct *new_vma) in vdso_fix_landing() argument 77 regs->ip = new_vma->vm_start + vdso_land; in vdso_fix_landing() 83 struct vm_area_struct *new_vma) in vdso_mremap() argument 87 vdso_fix_landing(image, new_vma); in vdso_mremap() 88 current->mm->context.vdso = (void __user *)new_vma->vm_start; in vdso_mremap()
|
| /linux-6.15/mm/ |
| H A D | vma.c | 1787 if (new_vma && new_vma->vm_start < addr + len) in copy_vma() 1795 if (new_vma) { in copy_vma() 1814 *vmap = vma = new_vma; in copy_vma() 1819 if (!new_vma) in copy_vma() 1826 if (new_vma->vm_file) in copy_vma() 1828 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma() 1829 new_vma->vm_ops->open(new_vma); in copy_vma() 1834 return new_vma; in copy_vma() 1838 vma_close(new_vma); in copy_vma() 1840 if (new_vma->vm_file) in copy_vma() [all …]
|
| H A D | mremap.c | 1151 struct vm_area_struct *new_vma; in copy_vma_and_data() local 1157 if (!new_vma) { in copy_vma_and_data() 1164 pmc.new = new_vma; in copy_vma_and_data() 1170 err = vma->vm_ops->mremap(new_vma); in copy_vma_and_data() 1184 vrm->vma = new_vma; in copy_vma_and_data() 1197 *new_vma_ptr = new_vma; in copy_vma_and_data() 1208 struct vm_area_struct *new_vma) in dontunmap_complete() argument 1234 struct vm_area_struct *new_vma; in move_vma() local 1250 err = copy_vma_and_data(vrm, &new_vma); in move_vma() 1256 if (err && !new_vma) in move_vma() [all …]
|
| H A D | mmap.c | 1427 static int special_mapping_mremap(struct vm_area_struct *new_vma) in special_mapping_mremap() argument 1429 struct vm_special_mapping *sm = new_vma->vm_private_data; in special_mapping_mremap() 1431 if (WARN_ON_ONCE(current->mm != new_vma->vm_mm)) in special_mapping_mremap() 1435 return sm->mremap(sm, new_vma); in special_mapping_mremap() 1827 struct vm_area_struct *new_vma, in mmap_read_lock_maybe_expand() argument 1830 if (!write || addr >= new_vma->vm_start) { in mmap_read_lock_maybe_expand() 1835 if (!(new_vma->vm_flags & VM_GROWSDOWN)) in mmap_read_lock_maybe_expand() 1839 if (expand_downwards(new_vma, addr)) { in mmap_read_lock_maybe_expand()
|
| H A D | hugetlb.c | 5788 struct vm_area_struct *new_vma, in move_hugetlb_page_tables() argument 5833 dst_pte = huge_pte_alloc(mm, new_vma, new_addr, sz); in move_hugetlb_page_tables()
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | vdso.c | 61 struct vm_area_struct *new_vma) in vdso_mremap() argument 63 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap() 160 struct vm_area_struct *new_vma) in aarch32_sigpage_mremap() argument 162 current->mm->context.sigpage = (void *)new_vma->vm_start; in aarch32_sigpage_mremap()
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | vdso.c | 28 static int vdso_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in vdso_mremap() argument 30 current->mm->context.vdso = (void *)(new_vma->vm_start); in vdso_mremap()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | vdso.c | 37 struct vm_area_struct *new_vma) in vdso_mremap() argument 39 current->mm->context.vdso = (void *)new_vma->vm_start; in vdso_mremap()
|
| /linux-6.15/arch/arm/kernel/ |
| H A D | vdso.c | 38 struct vm_area_struct *new_vma) in vdso_mremap() argument 40 current->mm->context.vdso = new_vma->vm_start; in vdso_mremap()
|
| H A D | process.c | 383 struct vm_area_struct *new_vma) in sigpage_mremap() argument 385 current->mm->context.sigpage = new_vma->vm_start; in sigpage_mremap()
|
| /linux-6.15/include/linux/ |
| H A D | mm_inline.h | 408 struct vm_area_struct *new_vma) in dup_anon_vma_name() argument 413 new_vma->anon_name = anon_vma_name_reuse(anon_name); in dup_anon_vma_name() 439 struct vm_area_struct *new_vma) {} in dup_anon_vma_name() argument
|
| H A D | hugetlb.h | 125 struct vm_area_struct *new_vma, 336 struct vm_area_struct *new_vma, in move_hugetlb_page_tables() argument
|
| H A D | mm_types.h | 1495 struct vm_area_struct *new_vma);
|
| /linux-6.15/drivers/gpu/drm/i915/ |
| H A D | i915_gem.c | 949 new_vma: in i915_gem_object_ggtt_pin_ww() 977 goto new_vma; in i915_gem_object_ggtt_pin_ww()
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_vm.c | 2287 static struct xe_vma *new_vma(struct xe_vm *vm, struct drm_gpuva_op_map *op, in new_vma() function 2469 vma = new_vma(vm, &op->base.map, op->map.pat_index, in vm_bind_ioctl_ops_parse() 2514 vma = new_vma(vm, op->base.remap.prev, in vm_bind_ioctl_ops_parse() 2544 vma = new_vma(vm, op->base.remap.next, in vm_bind_ioctl_ops_parse()
|
| /linux-6.15/kernel/events/ |
| H A D | uprobes.c | 1670 static int xol_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma) in xol_mremap() argument
|
| /linux-6.15/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 216 struct panthor_vma *new_vma; member
|