Back to index

glibc  2.9
td_thr_tls_get_addr.c File Reference
#include <link.h>
#include "thread_dbP.h"

Go to the source code of this file.


td_err_e td_thr_tls_get_addr (const td_thrhandle_t *th __attribute__((unused)), void *map_address __attribute__((unused)), size_t offset __attribute__((unused)), void **address __attribute__((unused)))

Function Documentation

td_err_e td_thr_tls_get_addr ( const td_thrhandle_t *th   __attribute__(unused),
void *map_address   __attribute__(unused),
size_t offset   __attribute__(unused),
void **address   __attribute__(unused) 

Definition at line 25 of file td_thr_tls_get_addr.c.

  /* Read the module ID from the link_map.  */
  size_t modid;
  if (ps_pdread (th->th_ta_p->ph,
               &((struct link_map *) map_address)->l_tls_modid,
               &modid, sizeof modid) != PS_OK)
    return TD_ERR;   /* XXX Other error value?  */

  td_err_e result = td_thr_tlsbase (th, modid, address);
  if (result == TD_OK)
    *address += offset;
  return result;
  return TD_ERR;

Here is the call graph for this function: