Lines Matching refs:vma
244 struct vm_area_struct *vma = current_pcb->mm->vmas; in process_copy_mm() local
245 while (vma != NULL) in process_copy_mm()
247 if (vma->vm_end > USER_MAX_LINEAR_ADDR || vma->vm_flags & VM_DONTCOPY) in process_copy_mm()
249 vma = vma->vm_next; in process_copy_mm()
253 int64_t vma_size = vma->vm_end - vma->vm_start; in process_copy_mm()
263 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm()
264 vma->vm_ops, &new_vma); in process_copy_mm()
271 memcpy((void *)phys_2_virt(pa), (void *)(vma->vm_start + i * PAGE_2M_SIZE), in process_copy_mm()
282 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()
289 memcpy((void *)va, (void *)vma->vm_start, vma_size); in process_copy_mm()
291 vma = vma->vm_next; in process_copy_mm()