syscall.sh / s390x / getpid

getpid

get process identification

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

Registers

registervalue
r120, the syscall number
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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