syscall.sh / nios2 / getpid

getpid

get process identification

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

Registers

registervalue
r2172, the syscall number
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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