Lines Matching refs:key_data
129 struct pthread_key_data *key_data; in pthread_key_delete() local
143 key_data = (struct pthread_key_data *)sys_slist_get(&(key_obj->key_data_l)); in pthread_key_delete()
146 k_free((void *)key_data); in pthread_key_delete()
147 LOG_DBG("Freed key data %p for key %x in thread %x", key_data, key, in pthread_key_delete()
172 struct pthread_key_data *key_data; in pthread_setspecific() local
211 key_data = k_malloc(sizeof(struct pthread_key_data)); in pthread_setspecific()
213 if (key_data == NULL) { in pthread_setspecific()
219 LOG_DBG("Allocated key data %p for key %x in thread %x", key_data, key, in pthread_setspecific()
223 key_data->thread_data.key = key_obj; in pthread_setspecific()
224 key_data->thread_data.spec_data = (void *)value; in pthread_setspecific()
227 sys_slist_append((&thread->key_list), (sys_snode_t *)(&key_data->thread_data)); in pthread_setspecific()
230 sys_slist_append(&(key_obj->key_data_l), (sys_snode_t *)key_data); in pthread_setspecific()