Searched refs:to_posix_errno (Results 1 – 14 of 14) sorted by relevance
22 .unwrap_or_else(|err| err.to_posix_errno() as usize); in rs_process_copy_mm()33 return r.unwrap_err().to_posix_errno(); in process_init_files()58 return r.unwrap_err().to_posix_errno(); in process_copy_files()73 return r.unwrap_err().to_posix_errno(); in process_exit_files()113 return r.unwrap_err().to_posix_errno(); in rs_init_stdio()
35 return SystemError::ENOMEM.to_posix_errno(); in process_copy_sighand()91 return SystemError::ENOMEM.to_posix_errno(); in process_copy_signal()
7 .unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_kick_cpu()
114 return Err(SystemError::ETIMEDOUT.to_posix_errno()); in cmpxchg_loop()123 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno()); in cmpxchg_loop()243 != SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno() in dec_return()
81 syscall_return!(SystemError::EFAULT.to_posix_errno() as u64, regs); in syscall_handler()134 return SystemError::EINVAL.to_posix_errno() as usize; in rs_do_execve()170 return r.map(|_| 0).unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_exec_init_process()
111 return SystemError::ENOMEM.to_posix_errno() as i64 as usize; in do_kmalloc()124 return SystemError::EINVAL.to_posix_errno() as i64 as usize; in kfree()
646 return err.to_posix_errno(); in mmio_create()665 .unwrap_or_else(|err| err.to_posix_errno()); in mmio_release()
100 return err.to_posix_errno(); in rs_usleep()
316 return e.to_posix_errno() as i64; in rs_schedule_timeout()
32 pub fn to_posix_errno(&self) -> i32 {
188 return SystemError::EINVAL.to_posix_errno(); in sched_migrate_process()
48 return r.unwrap_err().to_posix_errno(); in ahci_init()
286 return r.unwrap_err().to_posix_errno(); in rs_tty_init()
310 pub fn to_posix_errno(&self) -> i32 { in to_posix_errno() method996 let r = r.unwrap_or_else(|e| e.to_posix_errno() as usize); in handle()