Searched refs:new_brk (Results 1 – 2 of 2) sorted by relevance
754 pub unsafe fn set_brk(&mut self, new_brk: VirtAddr) -> Result<VirtAddr, SystemError> { in set_brk()755 assert!(new_brk.check_aligned(MMArch::PAGE_SIZE)); in set_brk()757 if !new_brk.check_user() || new_brk < self.brk_start { in set_brk()763 if new_brk > self.brk { in set_brk()764 let len = new_brk - self.brk; in set_brk()769 self.brk = new_brk; in set_brk()772 let unmap_len = self.brk - new_brk; in set_brk()773 let unmap_start = new_brk; in set_brk()781 self.brk = new_brk; in set_brk()791 let new_brk = if incr > 0 { in sbrk() localVariable[all …]
227 let new_brk = VirtAddr::new(args[0]); in handle() localVariable228 Self::brk(new_brk).map(|vaddr| vaddr.data()) in handle()