pidfd_getfd on ia32

obtain a duplicate of another process's file descriptor

sys_pidfd_getfd(int pidfd, int fd, unsigned int flags)
number438 (0x1b6)
abii386
entry pointsys_pidfd_getfd
sinceLinux 5.6
man pagepidfd_getfd(2)
sourceelixir.bootlin.com

Registers

registervalue
eax438, the syscall number
ebxint pidfd
ecxint fd
edxunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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