taglinefilesource code
new_vma128mm/mremap.cstruct vm_area_struct * new_vma;
new_vma130mm/mremap.cnew_vma = (struct vm_area_struct *)
new_vma132mm/mremap.cif (new_vma) {
new_vma136mm/mremap.c*new_vma = *vma;
new_vma137mm/mremap.cnew_vma->vm_start = new_addr;
new_vma138mm/mremap.cnew_vma->vm_end = new_addr+new_len;
new_vma139mm/mremap.cnew_vma->vm_offset = vma->vm_offset + (addr - vma->vm_start);
new_vma140mm/mremap.cif (new_vma->vm_inode)
new_vma141mm/mremap.cnew_vma->vm_inode->i_count++;
new_vma142mm/mremap.cif (new_vma->vm_ops && new_vma->vm_ops->open)
new_vma143mm/mremap.cnew_vma->vm_ops->open(new_vma);
new_vma144mm/mremap.cinsert_vm_struct(current, new_vma);
new_vma145mm/mremap.cmerge_segments(current, new_vma->vm_start, new_vma->vm_end);
new_vma149mm/mremap.ckfree(new_vma);