syscall.sh / xtensa / getpid

getpid

get process identification

sys_getpid(void)
number120 (0x78)
abicommon
entry pointsys_getpid
sinceLinux 5.0
man pagegetpid(2)
sourceelixir.bootlin.com

Registers

registervalue
a2120, the syscall number
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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