Lines Matching refs:proc_init_info
78 let mut proc_init_info = ProcInitInfo::new(""); in switch_to_user() localVariable
79 proc_init_info.envs.push(CString::new("PATH=/").unwrap()); in switch_to_user()
80 proc_init_info.args = kenrel_cmdline_param_manager().init_proc_args(); in switch_to_user()
81 proc_init_info.envs = kenrel_cmdline_param_manager().init_proc_envs(); in switch_to_user()
90 &mut proc_init_info, in switch_to_user()
102 if try_to_run_init_process(path, &mut proc_init_info, &mut trap_frame).is_ok() { in switch_to_user()
111 drop(proc_init_info); in switch_to_user()
120 proc_init_info: &mut ProcInitInfo, in try_to_run_init_process()
123 proc_init_info.proc_name = CString::new(path).unwrap(); in try_to_run_init_process()
124 proc_init_info.args.insert(0, CString::new(path).unwrap()); in try_to_run_init_process()
125 if let Err(e) = run_init_process(proc_init_info, trap_frame) { in try_to_run_init_process()
133 proc_init_info.args.remove(0); in try_to_run_init_process()
140 proc_init_info: &ProcInitInfo, in run_init_process()
145 let path = proc_init_info.proc_name.to_str().unwrap(); in run_init_process()
149 proc_init_info.args.clone(), in run_init_process()
150 proc_init_info.envs.clone(), in run_init_process()