MCPcopy Create free account
hub / github.com/asterinas/vostd / build_from_file

Method build_from_file

kernel/src/process/program_loader/mod.rs:39–79  ·  view source on GitHub ↗

Constructs a new `ProgramToLoad` from a file, handling shebang interpretation if needed. About `recursion_limit`: recursion limit is used to limit th recursion depth of shebang executables. If the interpreter(the program behind #!) of shebang executable is also a shebang, then it will trigger recursion. We will try to setup root vmar for the interpreter. I guess for most cases, setting the `recur

(
        elf_file: Dentry,
        fs_resolver: &FsResolver,
        argv: Vec<CString>,
        envp: Vec<CString>,
        recursion_limit: usize,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
parse_shebang_lineFunction · 0.85
check_executable_fileFunction · 0.85
to_strMethod · 0.80
inodeMethod · 0.45
read_bytes_atMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected