fn check_loadable(ctx: &Ctx, plan: &ExecPlan) -> Result<bool, i32>Expand description
Refuses, in the guest-stub mode, a plan the trampolines’ loaders cannot
carry out, and tells which trampoline loads the rest. Besides what the
kernel refuses (see check_executable) that is a format only
binfmt_misc would run, and a 32-bit program where the i386 trampoline
cannot run (a kernel without ia32 emulation). A nested launch, which
the trampoline sets up first, is only classified.
§Arguments
ctx- Shared supervisor state, for the diagnostic.plan- The exec.
§Returns
Whether the program is 32-bit, to be loaded by the i386 trampoline.
§Errors
The kernel’s errno, ENOEXEC for an unknown format, EOPNOTSUPP for a
32-bit program without the i386 trampoline.