Displaying 1 result from an estimated 1 matches for "usegd_getbase".
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
...* Compute the address of the ulwp_t and step over the
* ul_self pointer. The method used to store the user-land
* thread pointer is very different on 32- and 64-bit
* kernels.
*/
[ ... ]
#elif defined(__i386)
addr = USEGD_GETBASE(&lwp->lwp_pcb.pcb_gsdesc);
addr += sizeof (void *);
#endif
--------------------------------------------------------------------------------
So we''re using pcb_gsdesc, but it doesn''t appear that this is exposed
to userland via libproc (unless I''ve...