Home
last modified time | relevance | path

Searched refs:new_brk (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs500 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 …]
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs498 let new_brk = VirtAddr::new(args[0]); in handle() localVariable
499 Self::brk(new_brk).map(|vaddr| vaddr.data()) in handle()