Home
last modified time | relevance | path

Searched refs:vm_start (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dvma.c126 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()
Dmmio.c98 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()
Dmmap.c332 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 …]
Dmm-types.h123 uint64_t vm_start; // 区域的起始地址 member
/DragonOS-0.1.2/kernel/src/process/
Dfork.c253 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()
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()
Dprocess.c765 uint64_t size = (cur_vma->vm_end - cur_vma->vm_start); in process_exit_mm()
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c147 hiwater_vm = pcb_t->mm->vmas->vm_end - pcb_t->mm->vmas->vm_start; in procfs_open()