previous: >>108844215
#define __NR_kexec_load 246
#define __NR_kexec_file_load 320
https://man7.org/linux/man-pages/man2/kexec_load.2.html
tl;dr:
load a new kernel in preparation for execution
basically just like a reboot from what i can tell. the more interesting option is the KEXEC_ON_CRASH flag. that seems pretty cool! i guess the idea would be to use it to either save critical data, or else dump a bunch of debug logs on panic. i wonder if there are any off the shelf images that are intended for use like this? or would one have to create their own bespoke software?
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/