Skip to main content

load_and_run_elf

Function load_and_run_elf 

Source
pub fn load_and_run_elf(
    elf_data: &[u8],
    name: &'static str,
) -> Result<TaskId, &'static str>
Expand description

Load an ELF64 binary and schedule it as a Ring 3 user task.

§Arguments

  • elf_data - Raw ELF file bytes (must remain valid until load completes).
  • name - Name for the task (debugging purposes).

§Returns

Ok(()) on success, Err with a static error message on failure.