syscall.sh / ppc / 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)
number382 (0x17e)
abinospu
entry pointsys_kexec_file_load
sinceLinux 5.0
man pagekexec_file_load(2)
sourceelixir.bootlin.com

Registers

registervalue
r0382, the syscall number
r3int kernel_fd
r4int initrd_fd
r5unsigned long cmdline_len
r6const char *cmdline_ptr
r7unsigned long flags
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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