syscall.sh / x32 / pidfd_open

pidfd_open

obtain a file descriptor that refers to a task

sys_pidfd_open(pid_t pid, unsigned int flags)
number1073742258 (0x400001b2)
abicommon
entry pointsys_pidfd_open
sinceLinux 5.3
man pagepidfd_open(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742258, the syscall number
rdipid_t pid
rsiunsigned 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_open