This function is declared in the kos/thread.h file.
kos/thread.h
void *KosThreadTlsGet(void);
This function returns the pointer to the local storage of the thread (TLS) or RTL_NULL if there is no TLS.