Lines Matching refs:new

57     pub fn new(create_stack: bool) -> Result<Arc<Self>, SystemError> {  in new()  method
58 let inner = InnerAddressSpace::new(create_stack)?; in new()
60 inner: RwLock::new(inner), in new()
62 return Ok(Arc::new(result)); in new()
121 pub fn new(create_stack: bool) -> Result<Self, SystemError> { in new() method
124 mappings: UserMappings::new(), in new()
126 elf_brk_start: VirtAddr::new(0), in new()
127 elf_brk: VirtAddr::new(0), in new()
151 let new_addr_space = AddressSpace::new(false)?; in try_clone()
167 let tmp_flags: PageFlags<MMArch> = PageFlags::new().set_write(true); in try_clone()
171 VirtPageFrame::new(vma_guard.region.start()), in try_clone()
172 PageFrameCount::new(vma_guard.region.size() / MMArch::PAGE_SIZE), in try_clone()
251 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in map_anonymous()
255 Some(VirtAddr::new(addr)) in map_anonymous()
311 if page_count == PageFrameCount::new(0) { in mmap()
328 let page = VirtPageFrame::new(region.start()); in mmap()
336 active = PageFlushAll::new(); in mmap()
340 inactive = InactiveFlusher::new(); in mmap()
372 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap()
373 let mut flusher: PageFlushAll<MMArch> = PageFlushAll::new(); in munmap()
416 active = PageFlushAll::new(); in mprotect()
419 inactive = InactiveFlusher::new(); in mprotect()
424 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect()
473 let stack = UserStack::new(self, None, size)?; in new_user_stack()
485 let mut flusher: PageFlushAll<MMArch> = PageFlushAll::new(); in unmap_all()
524 VirtPageFrame::new(unmap_start), in set_brk()
543 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk()
563 pub fn new(utable: PageMapper) -> Self { in new() method
578 PhysPageFrame::new(self.utable.table().phys()), in drop()
579 PageFrameCount::new(1), in drop()
595 pub fn new() -> Self { in new() method
597 vmas: HashSet::new(), in new()
598 vm_holes: core::iter::once((VirtAddr::new(0), MMArch::USER_END_VADDR.data())) in new()
653 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free()
665 if vaddr == VirtAddr::new(0) { in find_free_at()
671 let requested = VirtRegion::new(vaddr, size); in find_free_at()
778 return Self::new(); in default()
804 pub fn new(vma: VMA) -> Arc<Self> { in new() method
805 let r = Arc::new(Self(SpinLock::new(vma))); in new()
861 unsafe { deallocate_page_frames(PhysPageFrame::new(paddr), PageFrameCount::new(1)) }; in unmap()
912 let vma: Arc<LockedVMA> = LockedVMA::new(vma); in extract()
920 let vma: Arc<LockedVMA> = LockedVMA::new(vma); in extract()
981 return VirtPageFrameIter::new( in pages()
982 VirtPageFrame::new(self.region.start()), in pages()
983 VirtPageFrame::new(self.region.end()), in pages()
1062 let r: Arc<LockedVMA> = LockedVMA::new(VMA { in physmap()
1063 region: VirtRegion::new(destination.virt_address(), count.data() * MMArch::PAGE_SIZE), in physmap()
1107 let r = LockedVMA::new(VMA { in zeroed()
1108 region: VirtRegion::new( in zeroed()
1122 VirtPageFrameIter::new(destination, destination.add(page_count)); in zeroed()
1182 pub fn new( in new() method
1218 VirtPageFrame::new(actual_stack_bottom), in new()
1219 PageFrameCount::new(Self::GUARD_PAGES_NUM), in new()