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)
number438 (0x1b6)
abicommon
entry pointsys_pidfd_getfd
sinceLinux 5.19
man pagepidfd_getfd(2)
sourceelixir.bootlin.com

Registers

registervalue
a7438, the syscall number
a0int pidfd
a1int fd
a2unsigned int flags
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/pidfd_getfd