Lines Matching refs:args
408 pub fn handle(syscall_num: usize, args: &[usize], from_user: bool) -> usize { in handle()
411 Self::put_string(args[0] as *const u8, args[1] as u32, args[2] as u32) in handle()
414 let path: &CStr = unsafe { CStr::from_ptr(args[0] as *const c_char) }; in handle()
420 let flags = args[1]; in handle()
429 let fd = args[0]; in handle()
433 let fd = args[0] as i32; in handle()
434 let buf_vaddr = args[1]; in handle()
435 let len = args[2]; in handle()
452 let fd = args[0] as i32; in handle()
453 let buf_vaddr = args[1]; in handle()
454 let len = args[2]; in handle()
474 let fd = args[0] as i32; in handle()
475 let offset = args[1] as i64; in handle()
476 let whence = args[2] as u32; in handle()
498 let new_brk = VirtAddr::new(args[0]); in handle()
503 let increment = args[0] as isize; in handle()
534 let r: Result<&str, SystemError> = chdir_check(args[0]); in handle()
543 let fd = args[0] as i32; in handle()
544 let buf_vaddr = args[1]; in handle()
545 let len = args[2]; in handle()
564 let path_ptr = args[0]; in handle()
565 let argv_ptr = args[1]; in handle()
566 let env_ptr = args[2]; in handle()
586 let pid = args[0] as pid_t; in handle()
587 let wstatus = args[1] as *mut c_int; in handle()
588 let options = args[2] as c_int; in handle()
589 let rusage = args[3] as *mut c_void; in handle()
605 let exit_code = args[0]; in handle()
609 let path_ptr = args[0] as *const c_char; in handle()
610 let mode = args[1]; in handle()
636 let req = args[0] as *const TimeSpec; in handle()
637 let rem = args[1] as *mut TimeSpec; in handle()
653 let pipefd = args[0] as *mut c_int; in handle()
669 let dirfd = args[0] as i32; in handle()
670 let pathname = args[1] as *const c_char; in handle()
671 let flags = args[2] as u32; in handle()
697 let pid = args[0] as pid_t; in handle()
698 let sig = args[1] as c_int; in handle()
704 let sig = args[0] as c_int; in handle()
705 let act = args[1]; in handle()
706 let old_act = args[2]; in handle()
720 let oldfd: i32 = args[0] as c_int; in handle()
724 let oldfd: i32 = args[0] as c_int; in handle()
725 let newfd: i32 = args[1] as c_int; in handle()
729 SYS_SOCKET => Self::socket(args[0], args[1], args[2]), in handle()
731 let optval = args[3] as *const u8; in handle()
732 let optlen = args[4] as usize; in handle()
740 Self::setsockopt(args[0], args[1], args[2], data) in handle()
744 let optval = args[3] as *mut u8; in handle()
745 let optlen = args[4] as *mut usize; in handle()
766 Self::getsockopt(args[0], args[1], args[2], optval, optlen as *mut u32) in handle()
771 let addr = args[1] as *const SockAddr; in handle()
772 let addrlen = args[2] as usize; in handle()
779 Self::connect(args[0], addr, addrlen) in handle()
783 let addr = args[1] as *const SockAddr; in handle()
784 let addrlen = args[2] as usize; in handle()
791 Self::bind(args[0], addr, addrlen) in handle()
796 let buf = args[1] as *const u8; in handle()
797 let len = args[2] as usize; in handle()
798 let flags = args[3] as u32; in handle()
799 let addr = args[4] as *const SockAddr; in handle()
800 let addrlen = args[5] as usize; in handle()
812 Self::sendto(args[0], data, flags, addr, addrlen) in handle()
817 let buf = args[1] as *mut u8; in handle()
818 let len = args[2] as usize; in handle()
819 let flags = args[3] as u32; in handle()
820 let addr = args[4] as *mut SockAddr; in handle()
821 let addrlen = args[5] as *mut usize; in handle()
849 Self::recvfrom(args[0], buf, flags, addr, addrlen as *mut u32) in handle()
854 let msg = args[1] as *mut crate::net::syscall::MsgHdr; in handle()
855 let flags = args[2] as u32; in handle()
876 Self::recvmsg(args[0], msg, flags) in handle()
880 SYS_LISTEN => Self::listen(args[0], args[1]), in handle()
881 SYS_SHUTDOWN => Self::shutdown(args[0], args[1]), in handle()
882 SYS_ACCEPT => Self::accept(args[0], args[1] as *mut SockAddr, args[2] as *mut u32), in handle()
884 Self::getsockname(args[0], args[1] as *mut SockAddr, args[2] as *mut u32) in handle()
887 Self::getpeername(args[0], args[1] as *mut SockAddr, args[2] as *mut u32) in handle()
890 let timeval = args[0] as *mut PosixTimeval; in handle()
891 let timezone_ptr = args[1] as *mut PosixTimeZone; in handle()
922 let len = page_align_up(args[1]); in handle()
923 let virt_addr = VirtAddr::new(args[0] as usize); in handle()
928 VirtAddr::new(args[0]), in handle()
930 args[2], in handle()
931 args[3], in handle()
932 args[4] as i32, in handle()
933 args[5], in handle()
938 let addr = args[0]; in handle()
939 let len = page_align_up(args[1]); in handle()
948 let addr = args[0]; in handle()
949 let len = page_align_up(args[1]); in handle()
954 Self::mprotect(VirtAddr::new(addr), len, args[2]) in handle()
959 let fd = args[0] as i32; in handle()
960 let kstat = args[1] as *mut PosixKstat; in handle()
971 let fd = args[0] as i32; in handle()
973 <FcntlCommand as FromPrimitive>::from_u32(args[1] as u32); in handle()
974 let arg = args[2] as i32; in handle()
986 let fd = args[0] as i32; in handle()
987 let len = args[1] as usize; in handle()