Re: how to implement Thread Local Storage (TLS) in kernel

Tech-Archive recommends: Speed Up your PC by fixing your registry



I want to "extend" the ETHREAD data structure and keep
some extra information about each running thread. Creating
a TLS scheme is the only way I can think of in kernel...

I think creating a table and using Thread ID to lookup is the
easy part. The hard part is knowing when to remove the entry
when a thread exits. Do you know any (un)documented API that
kernel handles thread exiting evernt?


Ben

.



Relevant Pages

  • Re: Multiprocessor synchronization
    ... I am making a debugger and I want to show some extra information about the ... process held in the kernel. ... MmProbeAndLockPages() is used on non-paged kernel-mode RAM? ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Oops trying to use an USB Drive (was: Re: Problems with USB Drive)
    ... >> Just as some extra information, when I try to shutdown the hotplug ... Unfortunately, when using a kernel from the 2.4 series, I am still not ... the hotplug scripts. ... Thanks in advance for any feedback, Rogério Brito. ...
    (Linux-Kernel)
  • kernel changes user apps thread priority
    ... how do I make the kernel to know the running thread from the user ... application and chance its priority? ...
    (microsoft.public.windowsce.embedded)