process_mrelease on x64
sys_process_mrelease(int pidfd, unsigned int flags)
| number | 448 (0x1c0) |
|---|---|
| abi | common |
| entry point | sys_process_mrelease |
| since | Linux 5.15 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 448, the syscall number |
rdi | int pidfd |
rsi | unsigned int flags |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 448
- arm64 448
- arm 448
- riscv64 448
- ia32 448
- x32 1073742272
- loongarch64 448
- ppc64 448
- ppc 448
- s390x 448
- mips64 5448
- mipsn32 6448
- mipso32 4448
- alpha 558
- arc 448
- csky 448
- hexagon 448
- ia64 1472, removed in 6.7
- m68k 448
- microblaze 448
- nds32 448, removed in 5.18
- nios2 448
- openrisc 448
- parisc 448
- sh 448
- sparc 448
- sparc64 448
- xtensa 448
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/process_mrelease