Skip to main content

sys_set_tid_address

Function sys_set_tid_address 

Source
pub fn sys_set_tid_address(tidptr: u64) -> Result<u64, SyscallError>
Expand description

SYS_SET_TID_ADDRESS (333): Store tidptr in the task; return current TID.

The kernel will write 0 to tidptr and call futex_wake when the thread exits. This is the mechanism used by pthreads for thread join.