Home
last modified time | relevance | path

Searched refs:bionic_tls (Results 1 – 11 of 11) sorted by relevance

/bionic/tests/
Dstruct_layout_test.cpp56 CHECK_OFFSET(pthread_internal_t, bionic_tls, 760); in tests()
58 CHECK_SIZE(bionic_tls, 12200); in tests()
59 CHECK_OFFSET(bionic_tls, key_data, 0); in tests()
60 CHECK_OFFSET(bionic_tls, locale, 2080); in tests()
61 CHECK_OFFSET(bionic_tls, basename_buf, 2088); in tests()
62 CHECK_OFFSET(bionic_tls, dirname_buf, 6184); in tests()
63 CHECK_OFFSET(bionic_tls, mntent_buf, 10280); in tests()
64 CHECK_OFFSET(bionic_tls, mntent_strings, 10320); in tests()
65 CHECK_OFFSET(bionic_tls, ptsname_buf, 11344); in tests()
66 CHECK_OFFSET(bionic_tls, ttyname_buf, 11376); in tests()
[all …]
/bionic/libc/bionic/
Dpthread_internal.h160 bionic_tls* bionic_tls; variable
179 __LIBC_HIDDEN__ void __init_bionic_tls_ptrs(bionic_tcb* tcb, bionic_tls* tls);
180 __LIBC_HIDDEN__ bionic_tls* __allocate_temp_bionic_tls();
181 __LIBC_HIDDEN__ void __free_temp_bionic_tls(bionic_tls* tls);
202 static inline __always_inline bionic_tls& __get_bionic_tls() { in __get_bionic_tls()
203 return *static_cast<bionic_tls*>(__get_tls()[TLS_SLOT_BIONIC_TLS]); in __get_bionic_tls()
Dpthread_create.cpp65 void __init_bionic_tls_ptrs(bionic_tcb* tcb, bionic_tls* tls) { in __init_bionic_tls_ptrs()
66 tcb->thread()->bionic_tls = tls; in __init_bionic_tls_ptrs()
72 bionic_tls* __allocate_temp_bionic_tls() { in __allocate_temp_bionic_tls()
73 size_t allocation_size = __BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE); in __allocate_temp_bionic_tls()
82 return static_cast<bionic_tls*>(allocation); in __allocate_temp_bionic_tls()
85 void __free_temp_bionic_tls(bionic_tls* tls) { in __free_temp_bionic_tls()
86 munmap(tls, __BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE)); in __free_temp_bionic_tls()
290 auto tls = reinterpret_cast<bionic_tls*>(mapping.static_tls + layout.offset_bionic_tls()); in __allocate_thread()
D__libc_init_main_thread.cpp147 bionic_tls* temp_tls = &__get_bionic_tls(); in __libc_init_main_thread_final()
158 auto new_tls = reinterpret_cast<bionic_tls*>(mapping.static_tls + layout.offset_bionic_tls()); in __libc_init_main_thread_final()
Dpty.cpp55 bionic_tls& tls = __get_bionic_tls(); in ptsname()
82 bionic_tls& tls = __get_bionic_tls(); in ttyname()
Dstrsignal.cpp66 bionic_tls& tls = __get_bionic_tls(); in strsignal()
Dstrerror.cpp219 bionic_tls& tls = __get_bionic_tls(); in strerror()
Dbionic_elf_tls.cpp146 offset_bionic_tls_ = reserve_type<bionic_tls>(); in reserve_bionic_tls()
/bionic/libc/private/
Dbionic_tls.h111 struct bionic_tls { struct
135 void copy_from_bootstrap(const bionic_tls* boot __attribute__((unused))) { in copy_from_bootstrap() argument
Dbionic_fdtrack.h53 bionic_tls& tls = __get_bionic_tls(); \
84 bionic_tls& tls = __get_bionic_tls(); \
/bionic/docs/
Delf-tls.md592 The `bionic_tls.h` header is marked with a warning: