syscall.sh / riscv64 / 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)
number294 (0x126)
abicommon
entry pointsys_kexec_file_load
sinceLinux 5.0
man pagekexec_file_load(2)
sourceelixir.bootlin.com

Registers

registervalue
a7294, the syscall number
a0int kernel_fd
a1int initrd_fd
a2unsigned long cmdline_len
a3const char *cmdline_ptr
a4unsigned long flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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