syscall.sh / x86 / gettid

gettid

get thread identification

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

Registers

registervalue
eax224, the syscall number
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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