Lines Matching refs:len
301 len: usize, in mmap()
330 len, in mmap()
340 len, in mmap()
450 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
452 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in munmap()
454 if unlikely(verify_area(start_vaddr, len).is_err()) { in munmap()
457 if unlikely(len == 0) { in munmap()
463 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in munmap()
482 len: usize, in mprotect()
486 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in mprotect()
488 if unlikely(verify_area(start_vaddr, len).is_err()) { in mprotect()
491 if unlikely(len == 0) { in mprotect()
499 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in mprotect()
517 len: usize, in madvise()
520 if !start_vaddr.check_aligned(MMArch::PAGE_SIZE) || !check_aligned(len, MMArch::PAGE_SIZE) { in madvise()
524 if unlikely(verify_area(start_vaddr, len).is_err()) { in madvise()
527 if unlikely(len == 0) { in madvise()
535 let page_count = PageFrameCount::new(len / MMArch::PAGE_SIZE); in madvise()
551 pub fn msync(start: VirtAddr, len: usize, flags: usize) -> Result<usize, SystemError> { in msync()
552 if !start.check_aligned(MMArch::PAGE_SIZE) || !check_aligned(len, MMArch::PAGE_SIZE) { in msync()
556 if unlikely(verify_area(start, len).is_err()) { in msync()
559 if unlikely(len == 0) { in msync()
564 let end = start + len; in msync()
623 err = file.write(len, unsafe { in msync()