syscall.sh / csky / getpid

getpid

get process identification

sys_getpid(void)
number172 (0xac)
abicommon
entry pointsys_getpid
sinceLinux 4.20
man pagegetpid(2)
sourceelixir.bootlin.com

Registers

registervalue
r7172, the syscall number
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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