syscall.sh / sh / 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)
number283 (0x11b)
abicommon
entry pointsys_kexec_load
sinceLinux 5.0
man pagekexec_load(2)
sourceelixir.bootlin.com

Registers

registervalue
r3283, the syscall number
r4unsigned long entry
r5unsigned long nr_segments
r6struct kexec_segment *segments
r7unsigned long flags
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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