Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dsyscall.rs370 new_len: usize, in mremap()
384 && (!mremap_flags.contains(MremapFlags::MREMAP_MAYMOVE) || old_len != new_len) in mremap()
396 let new_len = page_align_up(new_len); in mremap() localVariable
399 if new_len == 0 { in mremap()
418 if old_len > new_len { in mremap()
419 Self::munmap(old_vaddr + new_len, old_len - new_len)?; in mremap()
427 new_len, in mremap()
H A Ducontext.rs517 new_len: usize, in mremap()
529 let new_region = VirtRegion::new(new_vaddr, new_len); in mremap()
543 let page_count = PageFrameCount::from_bytes(new_len).unwrap(); in mremap()
548 let new_page = self.map_anonymous(new_vaddr, new_len, prot_flags, map_flags, true, true)?; in mremap()
556 UserBufferWriter::new(new_page_vaddr.data() as *mut u8, new_len, true)?; in mremap()
/DragonOS/kernel/src/syscall/
H A Dmod.rs619 let new_len = args[2]; in handle() localVariable
623 Self::mremap(old_vaddr, old_len, new_len, mremap_flags, new_vaddr) in handle()