syscall.sh / riscv64 / set_tid_address

set_tid_address

set pointer to thread ID

sys_set_tid_address(int *tidptr)
number96 (0x60)
abicommon
entry pointsys_set_tid_address
sinceLinux 4.15
man pageset_tid_address(2)
sourceelixir.bootlin.com

Registers

registervalue
a796, the syscall number
a0int *tidptr
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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