syscall.sh / x64 / kexec_load

kexec_load

load a new kernel for later execution

sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags)
number246 (0xf6)
abi64
entry pointsys_kexec_load
sinceLinux 3.3
man pagekexec_load(2)
sourceelixir.bootlin.com

Registers

registervalue
rax246, the syscall number
rdiunsigned long entry
rsiunsigned long nr_segments
rdxstruct kexec_segment *segments
r10unsigned 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/x64/kexec_load