Searched refs:vm_start (Results 1 – 7 of 7) sorted by relevance
/DragonOS-0.1.3/kernel/src/mm/ |
D | vma.c | 126 prev = vma_find(mm, vma->vm_start); in vma_insert() 128 if (prev && prev->vm_start <= vma->vm_start && prev->vm_end >= vma->vm_end) in vma_insert() 134 …v && ((vma->vm_start >= prev->vm_start && vma->vm_start <= prev->vm_end) || (prev->vm_start <= vma… in vma_insert() 137 …if ((!CROSS_2M_BOUND(vma->vm_start, prev->vm_start)) && (!CROSS_2M_BOUND(vma->vm_end, prev->vm_end… in vma_insert() 140 … kdebug("before combining vma:vm_start = %#018lx, vm_end = %#018lx\n", vma->vm_start, vma->vm_end); in vma_insert() 142 prev->vm_start = (vma->vm_start < prev->vm_start )? vma->vm_start : prev->vm_start; in vma_insert() 145 prev->page_offset = prev->vm_start - (prev->vm_start & PAGE_2M_MASK); in vma_insert() 146 …%#018lx\nprev:vm_start = %018lx, vm_end = %018lx\n", vma->vm_start, vma->vm_end, prev->vm_start, p… in vma_insert()
|
D | mmio.c | 98 if (unlikely(vma->vm_start != (vaddr + i))) in mmio_release() 104 retval = __mmio_buddy_give_back(vma->vm_start, 31 - __clz(vma->vm_end - vma->vm_start)); in mmio_release() 105 i += vma->vm_end - vma->vm_start; in mmio_release()
|
D | mmap.c | 332 vma->vm_start = vaddr; in mm_create_vma() 338 *res_vma = vma_find(mm, vma->vm_start); in mm_create_vma() 392 BUG_ON(vma->vm_start + offset + length > vma->vm_end); in mm_map_vma() 401 len_4k = PAGE_2M_ALIGN(vma->vm_start + offset) - (vma->vm_start + offset); in mm_map_vma() 412 …retval = mm_map_proc_page_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset, paddr, le… in mm_map_vma() 431 …retval = mm_map_proc_page_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, … in mm_map_vma() 447 …retval = mm_map_proc_page_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, … in mm_map_vma() 493 offset = vaddr + mapped - vma->vm_start; in mm_map() 494 uint64_t m_len = vma->vm_end - vma->vm_start - offset; in mm_map() 523 *paddr = __mm_get_paddr(mm, vma->vm_start); in mm_unmap_vma() [all …]
|
D | mm-types.h | 123 uint64_t vm_start; // 区域的起始地址 member
|
/DragonOS-0.1.3/kernel/src/process/ |
D | fork.c | 255 int64_t vma_size = vma->vm_end - vma->vm_start; in process_copy_mm() 265 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm() 273 memcpy((void *)phys_2_virt(pa), (void *)(vma->vm_start + i * PAGE_2M_SIZE), in process_copy_mm() 284 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm() 291 memcpy((void *)va, (void *)vma->vm_start, vma_size); in process_copy_mm()
|
D | process.c | 786 uint64_t size = (cur_vma->vm_end - cur_vma->vm_start); in process_exit_mm()
|
/DragonOS-0.1.3/kernel/src/filesystem/procfs/ |
D | procfs.c | 147 hiwater_vm = pcb_t->mm->vmas->vm_end - pcb_t->mm->vmas->vm_start; in procfs_open()
|