Home
last modified time | relevance | path

Searched refs:ExecError (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/process/
H A Dexec.rs26 fn probe(&'static self, param: &ExecParam, buf: &[u8]) -> Result<(), ExecError>; in probe() argument
32 ) -> Result<BinaryLoaderResult, ExecError>; in load() argument
54 pub enum ExecError { enum
73 impl From<ExecError> for SystemError {
74 fn from(val: ExecError) -> Self { in from()
76 ExecError::NotExecutable => SystemError::ENOEXEC, in from()
77 ExecError::WrongArchitecture => SystemError::ENOEXEC, in from()
78 ExecError::PermissionDenied => SystemError::EACCES, in from()
79 ExecError::NotSupported => SystemError::ENOSYS, in from()
80 ExecError::ParseError => SystemError::ENOEXEC, in from()
[all …]
/DragonOS/kernel/src/libs/
H A Delf.rs31 exec::{BinaryLoader, BinaryLoaderResult, ExecError, ExecLoadMode, ExecParam},
62 ) -> Result<(), ExecError> { in inner_probe_common() argument
65 return Err(ExecError::WrongArchitecture); in inner_probe_common()
74 return Err(ExecError::NotExecutable); in inner_probe_common()
77 return Err(ExecError::NotSupported); in inner_probe_common()
88 ) -> Result<(), ExecError> { in probe_x86_64() argument
91 return Err(ExecError::WrongArchitecture); in probe_x86_64()
101 ) -> Result<(), ExecError> { in probe_riscv() argument
104 return Err(ExecError::WrongArchitecture); in probe_riscv()
123 ) -> Result<(), ExecError> { in set_elf_brk() argument
[all …]