Lines Matching refs:len
120 len: usize, in mmap()
152 len, in mmap()
170 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
172 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in munmap()
174 if unlikely(verify_area(start_vaddr, len).is_err()) { in munmap()
177 if unlikely(len == 0) { in munmap()
183 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in munmap()
201 len: usize, in mprotect()
205 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in mprotect()
207 if unlikely(verify_area(start_vaddr, len).is_err()) { in mprotect()
210 if unlikely(len == 0) { in mprotect()
218 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in mprotect()