syscall.sh / x86 / getpid

getpid

get process identification

sys_getpid(void)
number20 (0x14)
abii386
entry pointsys_getpid
sinceLinux 3.3
man pagegetpid(2)
sourceelixir.bootlin.com

Registers

registervalue
eax20, the syscall number
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/getpid