Searched refs:sem_mtx (Results 1 – 2 of 2) sorted by relevance
651 static kmutex_t sem_mtx; variable672 mutex_enter(&sem_mtx); in sweep_thread()675 mutex_exit(&sem_mtx); in sweep_thread()681 mutex_enter(&sem_mtx); in sweep_thread()684 mutex_exit(&sem_mtx); in sweep_thread()708 mutex_init(&sem_mtx, NULL, MUTEX_DEFAULT, NULL); in run_sweep()724 mutex_enter(&sem_mtx); in run_sweep()725 while (cv_timedwait_sig(&sem_cv, &sem_mtx, in run_sweep()734 mutex_exit(&sem_mtx); in run_sweep()740 mutex_exit(&sem_mtx); in run_sweep()[all …]
113 static struct mtx sem_mtx; /* semaphore global lock */ variable304 mtx_init(&sem_mtx, "sem", NULL, MTX_DEF); in seminit()369 mtx_destroy(&sem_mtx); in semunload()559 mtx_assert(&sem_mtx, MA_OWNED); in sem_remove()754 mtx_lock(&sem_mtx); in kern_semctl()950 mtx_unlock(&sem_mtx); in kern_semctl()979 mtx_lock(&sem_mtx); in sys_semget()1084 mtx_unlock(&sem_mtx); in sys_semget()1771 mtx_lock(&sem_mtx); in sem_prison_cleanup()1780 mtx_unlock(&sem_mtx); in sem_prison_cleanup()