Searched refs:VirtRegion (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.8/kernel/src/mm/ |
D | mod.rs | 467 pub struct VirtRegion { struct 473 impl VirtRegion { impl 476 VirtRegion { start, size } in new() 499 return Some(VirtRegion::new(start, size)); in between() 505 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect() argument 508 return VirtRegion::between(start, end); in intersect() 537 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page() 542 pub fn collide(&self, other: &VirtRegion) -> bool { in collide() 556 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before() 563 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after() [all …]
|
D | ucontext.rs | 35 MemoryManagementArch, PageTableKind, VirtAddr, VirtRegion, 372 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap() 424 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect() 618 pub fn conflicts(&self, request: VirtRegion) -> impl Iterator<Item = Arc<LockedVMA>> + '_ { in conflicts() 633 pub fn find_free(&self, min_vaddr: VirtAddr, size: usize) -> Option<VirtRegion> { in find_free() argument 653 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free() 663 ) -> Result<VirtRegion, SystemError> { in find_free_at() argument 671 let requested = VirtRegion::new(vaddr, size); in find_free_at() 702 fn reserve_hole(&mut self, region: &VirtRegion) { in reserve_hole() argument 724 fn unreserve_hole(&mut self, region: &VirtRegion) { in unreserve_hole() argument [all …]
|