syscall.sh / x64 / gettid

gettid

get thread identification

sys_gettid(void)
number186 (0xba)
abicommon
entry pointsys_gettid
sinceLinux 3.3
man pagegettid(2)
sourceelixir.bootlin.com

Registers

registervalue
rax186, the syscall number
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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