syscall.sh / s390x / 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)
number381 (0x17d)
abicommon
entry pointsys_kexec_file_load
sinceLinux 4.17
man pagekexec_file_load(2)
sourceelixir.bootlin.com

Registers

registervalue
r1381, the syscall number
r2int kernel_fd
r3int initrd_fd
r4unsigned long cmdline_len
r5const char *cmdline_ptr
r6unsigned long flags
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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