syscall.sh / x32 / pidfd_getfd
pidfd_getfd
obtain a duplicate of another process's file descriptor
sys_pidfd_getfd(int pidfd, int fd, unsigned int flags)
| number | 1073742262 (0x400001b6) |
|---|---|
| abi | common |
| entry point | sys_pidfd_getfd |
| since | Linux 5.6 |
| man page | pidfd_getfd(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073742262, the syscall number |
rdi | int pidfd |
rsi | int fd |
rdx | unsigned int flags |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 438
- x86 438
- arm64 438
- arm 438
- riscv64 438
- loongarch64 438
- ppc64 438
- ppc 438
- s390x 438
- mips64 5438
- mipsn32 6438
- mipso32 4438
- alpha 548
- arc 438
- csky 438
- hexagon 438
- m68k 438
- microblaze 438
- nios2 438
- openrisc 438
- parisc 438
- sh 438
- sparc 438
- sparc64 438
- xtensa 438
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/pidfd_getfd