syscall.sh / sh / gettid

gettid

get thread identification

sys_gettid(void)
number224 (0xe0)
abicommon
entry pointsys_gettid
sinceLinux 5.0
man pagegettid(2)
sourceelixir.bootlin.com

Registers

registervalue
r3224, the syscall number
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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