syscall.sh / x32 / kexec_file_load

kexec_file_load

load a new kernel for later execution

sys_kexec_file_load(int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline_ptr, unsigned long flags)
number1073742144 (0x40000140)
abicommon
entry pointsys_kexec_file_load
sinceLinux 3.17
man pagekexec_file_load(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742144, the syscall number
rdiint kernel_fd
rsiint initrd_fd
rdxunsigned long cmdline_len
r10const char *cmdline_ptr
r8unsigned long flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/kexec_file_load