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)
number1073742262 (0x400001b6)
abicommon
entry pointsys_pidfd_getfd
sinceLinux 5.6
man pagepidfd_getfd(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742262, the syscall number
rdiint pidfd
rsiint fd
rdxunsigned int flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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