Skip to main content

launch_program

Function launch_program 

Source
pub async fn launch_program(
    program_name: &str,
    target_path: &str,
    args: impl IntoIterator<Item = &str>,
    bootfs_vmo: Vmo,
    handles: SystemHandles,
    bootfs_entries: Option<&mut Vec<(u32, Vmo)>>,
    log: &mut Log,
) -> Result<Process, Error>
Expand description

Loads and executes the target binary (and its ELF interpreter if dynamically linked) from the provided BOOTFS VMO into a new child process under handles.root_job.

If the program requires dynamic linking (PT_INTERP), this function also sets up and asynchronously serves the fuchsia.ldsvc.Loader service to resolve dynamic library dependencies.