td_thr_tlsbase - get the base address of a thread's local storage (TLS) block
cc [ flag... ] file... -lc_db [ library... ] #include <proc_service.h> #include <thread_db.h> td_err_e td_thr_tlsbase(const td_thrhandle_t *th_p, ulong_t moduleid, void psaddr_t *base);
The td_thr_tlsbase() function returns the base address of a threads local storage block for the object specified by moduleid for the thread identified by th_p. The base address is written into *base.
The moduleid is typically obtained by the rd_loadobj_iter() function found in the librtld_db(3LIB) library. See Scanning Loadable Objects in Oracle Solaris 11.3 Linkers and Libraries Guide.
The call completed successfully.
The base argument was NULL, or a libc_db internal error occurred.
An invalid internal process handle was passed in.
There is a null external process handle associated with this internal process handle.
A call to one of the imported interface routines failed.
There is no TLS in this module or moduleid is invalid.
The module's TLS has not yet been allocated by the thread.
See attributes(5) for descriptions of the following attributes: