38typedef struct kthread_tls_kv {
49 void (*destructor)(
void *);
54LIST_HEAD(kthread_tls_kv_list, kthread_tls_kv);
126int kthread_tls_init(
void);
127void kthread_tls_shutdown(
void);
typedef LIST_HEAD(nmmgr_list, nmmgr_handler) nmmgr_list_t
Name handler list type.
Thread-local storage key-value pair.
Definition tls.h:38
kthread_key_t key
The key associated with this data.
Definition tls.h:43
void * data
The value of the data.
Definition tls.h:46
LIST_ENTRY(kthread_tls_kv) kv_list
List handle – NOT a function.
void * kthread_getspecific(kthread_key_t key)
Retrieve a value associated with a TLS key.
int kthread_key_create(kthread_key_t *key, void(*destructor)(void *))
Create a new thread-local storage key.
int kthread_key_delete(kthread_key_t key)
Delete a TLS key.
int kthread_setspecific(kthread_key_t key, const void *value)
Set thread specific data for a key.
int kthread_key_t
Thread-local storage key type.
Definition tls.h:28