Lines Matching refs:len
209 len: usize, in mmap()
241 len, in mmap()
346 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
348 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in munmap()
350 if unlikely(verify_area(start_vaddr, len).is_err()) { in munmap()
353 if unlikely(len == 0) { in munmap()
359 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in munmap()
378 len: usize, in mprotect()
382 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in mprotect()
384 if unlikely(verify_area(start_vaddr, len).is_err()) { in mprotect()
387 if unlikely(len == 0) { in mprotect()
395 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in mprotect()