Home
last modified time | relevance | path

Searched refs:to_posix_errno (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/process/
Dc_adapter.rs22 .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()
Dfork.rs35 return SystemError::ENOMEM.to_posix_errno(); in process_copy_sighand()
91 return SystemError::ENOMEM.to_posix_errno(); in process_copy_signal()
/DragonOS-0.1.8/kernel/src/smp/
Dc_adapter.rs7 .unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_kick_cpu()
/DragonOS-0.1.8/kernel/src/libs/
Dlockref.rs114 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()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs81 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()
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs111 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()
Dmmio_buddy.rs646 return err.to_posix_errno(); in mmio_create()
665 .unwrap_or_else(|err| err.to_posix_errno()); in mmio_release()
/DragonOS-0.1.8/kernel/src/time/
Dsleep.rs100 return err.to_posix_errno(); in rs_usleep()
Dtimer.rs316 return e.to_posix_errno() as i64; in rs_schedule_timeout()
/DragonOS-0.1.8/docs/kernel/core_api/
Dcasting.md32 pub fn to_posix_errno(&self) -> i32 {
/DragonOS-0.1.8/kernel/src/sched/
Dcore.rs188 return SystemError::EINVAL.to_posix_errno(); in sched_migrate_process()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs48 return r.unwrap_err().to_posix_errno(); in ahci_init()
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs286 return r.unwrap_err().to_posix_errno(); in rs_tty_init()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs310 pub fn to_posix_errno(&self) -> i32 { in to_posix_errno() method
996 let r = r.unwrap_or_else(|e| e.to_posix_errno() as usize); in handle()