Searched refs:new_brk (Results 1 – 2 of 2) sorted by relevance
500 pub unsafe fn set_brk(&mut self, new_brk: VirtAddr) -> Result<VirtAddr, SystemError> { in set_brk()501 assert!(new_brk.check_aligned(MMArch::PAGE_SIZE)); in set_brk()503 if !new_brk.check_user() || new_brk < self.brk_start { in set_brk()509 if new_brk > self.brk { in set_brk()510 let len = new_brk - self.brk; in set_brk()515 self.brk = new_brk; in set_brk()518 let unmap_len = self.brk - new_brk; in set_brk()519 let unmap_start = new_brk; in set_brk()527 self.brk = new_brk; in set_brk()537 let new_brk = if incr > 0 { in sbrk() localVariable[all …]
498 let new_brk = VirtAddr::new(args[0]); in handle() localVariable499 Self::brk(new_brk).map(|vaddr| vaddr.data()) in handle()