Searched refs:tun_mtx (Results 1 – 1 of 1) sorted by relevance
146 struct mtx tun_mtx; /* softc field mutex */ member158 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx)159 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx)160 #define TUN_LOCK_ASSERT(tp) mtx_assert(&(tp)->tun_mtx, MA_OWNED);642 mtx_destroy(&tp->tun_mtx); in tunfree()662 error = cv_wait_sig(&tp->tun_cv, &tp->tun_mtx); in tun_destroy()664 cv_wait(&tp->tun_cv, &tp->tun_mtx); in tun_destroy()876 mtx_init(&tp->tun_mtx, "tun_mtx", NULL, MTX_DEF); in tun_create_device()893 mtx_destroy(&tp->tun_mtx); in tun_create_device()902 knlist_init_mtx(&tp->tun_rsel.si_note, &tp->tun_mtx); in tun_create_device()[all …]