Home
last modified time | relevance | path

Searched refs:param (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/process/
H A Dexec.rs26 fn probe(&'static self, param: &ExecParam, buf: &[u8]) -> Result<(), ExecError>; in probe()
30 param: &mut ExecParam, in load()
165 pub fn load_binary_file(param: &mut ExecParam) -> Result<BinaryLoaderResult, SystemError> { in load_binary_file()
168 param.file_mut().lseek(SeekFrom::SeekSet(0))?; in load_binary_file()
169 let _bytes = param.file_mut().read(512, &mut head_buf)?; in load_binary_file()
174 let probe_result = bl.probe(param, &head_buf); in load_binary_file()
186 assert!(param.vm().is_current()); in load_binary_file()
190 .load(param, &head_buf) in load_binary_file()
H A Dsyscall.rs160 let mut param = ExecParam::new(path.as_str(), address_space.clone(), ExecParamFlags::EXEC)?; in do_execve() localVariable
164 let load_result = load_binary_file(&mut param).inspect_err(|_| { in do_execve()
172 param.init_info_mut().args = argv; in do_execve()
173 param.init_info_mut().envs = envp; in do_execve()
184 param in do_execve()
197 Self::arch_do_execve(regs, &param, &load_result, user_sp, argv_ptr) in do_execve()
/DragonOS/kernel/src/libs/
H A Delf.rs60 param: &ExecParam, in inner_probe_common()
69 if param.load_mode() == ExecLoadMode::Exec { in inner_probe_common()
86 param: &ExecParam, in probe_x86_64()
93 return self.inner_probe_common(param, ehdr); in probe_x86_64()
99 param: &ExecParam, in probe_riscv()
106 return self.inner_probe_common(param, ehdr); in probe_riscv()
203 param: &mut ExecParam, in load_elf_segment()
276 param, in load_elf_segment()
301 param, in load_elf_segment()
329 param: &mut ExecParam, in do_load_file()
[all …]
/DragonOS/kernel/src/init/
H A Dcmdline.rs268 if let Some(param) = self.find_param(node, option, KCmdlineParamType::EarlyKV) { in early_init()
269 let param = unsafe { param.force_mut() }; in early_init() localVariable
270 match param { in early_init()
341 if let Some(param) = self.find_param(node, option, KCmdlineParamType::KV) { in init()
342 let param = unsafe { param.force_mut() }; in init() localVariable
343 match param { in init()
355 } else if let Some(param) = self.find_param(node, option, KCmdlineParamType::Arg) { in init()
356 let param = unsafe { param.force_mut() }; in init() localVariable
357 match param { in init()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dsyscall.rs14 param: &ExecParam, in arch_do_execve()
21 regs.a0 = param.init_info().args.len(); in arch_do_execve()
/DragonOS/kernel/src/arch/x86_64/init/pvh/
H A Dmod.rs6 use param::{E820Type, HvmMemmapTableEntry, HvmStartInfo};
22 mod param; module
85 param::E820Type::Ram => { in early_init_memory_blocks()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dfdt.rs127 for param in PARAM_TO_READ { in get_fdt_params()
128 let node = fdt.find_node(param.path); in get_fdt_params()
134 for prop in param.properties { in get_fdt_params()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dsyscall.rs20 param: &ExecParam, in arch_do_execve()
29 regs.rdi = param.init_info().args.len() as u64; in arch_do_execve()