syscall.sh / s390x / gettid

gettid

get thread identification

sys_gettid(void)
number236 (0xec)
abicommon
entry pointsys_gettid
sinceLinux 4.16
man pagegettid(2)
sourceelixir.bootlin.com

Registers

registervalue
r1236, the syscall number
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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