Home
last modified time | relevance | path

Searched refs:taskq_tsd (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_taskq.c46 static uint_t taskq_tsd; variable
80 tsd_create(&taskq_tsd, NULL); in system_taskq_init()
109 tsd_destroy(&taskq_tsd); in system_taskq_fini()
200 if (context != NULL && tsd_get(taskq_tsd) == NULL) in taskq_tsd_set()
203 tsd_set(taskq_tsd, tq); in taskq_tsd_set()
342 return (tsd_get(taskq_tsd)); in taskq_of_curthread()
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dtaskq.c30 static pthread_key_t taskq_tsd; variable
221 VERIFY0(pthread_key_create(&taskq_tsd, NULL)); in taskq_tsd_init()
232 VERIFY0(pthread_setspecific(taskq_tsd, tq)); in taskq_thread()
396 return (pthread_getspecific(taskq_tsd)); in taskq_of_curthread()
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-taskq.c166 static uint_t taskq_tsd; variable
590 return (tq == (taskq_t *)tsd_get_by_thread(taskq_tsd, t)); in taskq_member()
597 return (tsd_get(taskq_tsd)); in taskq_of_curthread()
1024 tsd_set(taskq_tsd, tq); in taskq_thread()
1156 tsd_set(taskq_tsd, NULL); in taskq_thread()
1791 tsd_create(&taskq_tsd, NULL); in spl_taskq_init()
1844 tsd_destroy(&taskq_tsd); in spl_taskq_fini()