Function write_thread_pointer
pub unsafe fn write_thread_pointer(fs_base: usize)
Expand description
Writes the thread pointer of the current CPU (FS_BASE
).
It is used to implement TLS (Thread Local Storage).
ยงSafety
This function is unsafe as it changes the CPU states.