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)
| number | 382 (0x17e) |
|---|---|
| abi | nospu |
| entry point | sys_kexec_file_load |
| since | Linux 5.0 |
| man page | kexec_file_load(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 382, the syscall number |
r3 | int kernel_fd |
r4 | int initrd_fd |
r5 | unsigned long cmdline_len |
r6 | const char *cmdline_ptr |
r7 | unsigned long flags |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 320
- arm64 294
- arm 401
- riscv64 294
- x32 1073742144
- loongarch64 294
- ppc64 382
- s390x 381
- arc 294
- csky 294
- hexagon 294
- nios2 294
- openrisc 294
- parisc 355
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/kexec_file_load