Searched refs:VirtRegion (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | mod.rs | 705 pub struct VirtRegion { struct 711 impl VirtRegion { implementation 714 VirtRegion { start, size } in new() 737 return Some(VirtRegion::new(start, size)); in between() 743 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect() argument 746 return VirtRegion::between(start, end); in intersect() 775 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page() 780 pub fn collide(&self, other: &VirtRegion) -> bool { in collide() 794 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before() 801 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after() [all …]
|
H A D | ucontext.rs | 40 MemoryManagementArch, PageTableKind, VirtAddr, VirtRegion, VmFlags, 291 VirtRegion::new(page.virt_address(), count.data() * MMArch::PAGE_SIZE), in map_anonymous() 394 VirtRegion::new(page.virt_address(), count.data() * MMArch::PAGE_SIZE), in file_mapping() 528 let old_region = VirtRegion::new(old_vaddr, old_len); in mremap() 529 let new_region = VirtRegion::new(new_vaddr, new_len); in mremap() 580 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap() 632 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect() 694 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in madvise() 912 pub fn conflicts(&self, request: VirtRegion) -> impl Iterator<Item = Arc<LockedVMA>> + '_ { in conflicts() 927 pub fn find_free(&self, min_vaddr: VirtAddr, size: usize) -> Option<VirtRegion> { in find_free() argument [all …]
|