Lines Matching refs:new_brk
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
543 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk() localVariable
545 return self.set_brk(new_brk); in sbrk()