syscall.sh / loongarch64 / pidfd_getfd
pidfd_getfd
obtain a duplicate of another process's file descriptor
sys_pidfd_getfd(int pidfd, int fd, unsigned int flags)
| number | 438 (0x1b6) |
|---|---|
| abi | common |
| entry point | sys_pidfd_getfd |
| since | Linux 5.19 |
| man page | pidfd_getfd(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 438, the syscall number |
a0 | int pidfd |
a1 | int fd |
a2 | unsigned int flags |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 438
- x86 438
- arm64 438
- arm 438
- riscv64 438
- x32 1073742262
- 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/loongarch64/pidfd_getfd