Is there any simple way to store thread specific data in Linux Kernel? For example, I want to store some counters for each thread and read/write them from different places in lock free manner. I expected there should be something in thread_info structure, but I was unable to find any good documentation about it.
I know how to make it in Windows kernel, but not sure what is the best what for Linux. Probably, there is also kind of compiler-specific routine to access tls.
Thank you!