Home
last modified time | relevance | path

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

/DragonOS-0.1.5/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()
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
Dmmio_buddy.rs578 if unsafe { (*vma).vm_start != (vaddr + loop_i) } { in release_mmio()
587 match MMIO_POOL.give_back_block(unsafe { (*vma).vm_start }, unsafe { in release_mmio()
588 31 - ((*vma).vm_end - (*vma).vm_start).leading_zeros() in release_mmio()
591 loop_i += unsafe { (*vma).vm_end - (*vma).vm_start }; in release_mmio()
/DragonOS-0.1.5/kernel/src/process/
Dfork.c228 int64_t vma_size = vma->vm_end - vma->vm_start; in process_copy_mm()
238 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm()
246 memcpy((void *)phys_2_virt(pa), (void *)(vma->vm_start + i * PAGE_2M_SIZE), in process_copy_mm()
257 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()
264 memcpy((void *)va, (void *)vma->vm_start, vma_size); in process_copy_mm()
Dprocess.c830 uint64_t size = (cur_vma->vm_end - cur_vma->vm_start); in process_exit_mm()
/DragonOS-0.1.5/kernel/src/filesystem/procfs/
Dmod.rs174 unsafe { *(*pcb.mm).vmas }.vm_end - unsafe { *(*pcb.mm).vmas }.vm_start; in open_status()