Searched refs:tun_mtx (Results 1 – 1 of 1) sorted by relevance
143 struct mtx tun_mtx; /* softc field mutex */ member153 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx)154 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx)155 #define TUN_LOCK_ASSERT(tp) mtx_assert(&(tp)->tun_mtx, MA_OWNED);623 cv_wait_unlock(&tp->tun_cv, &tp->tun_mtx); in tun_destroy()645 mtx_destroy(&tp->tun_mtx); in tun_destroy()804 mtx_init(&tp->tun_mtx, "tun_mtx", NULL, MTX_DEF); in tun_create_device()828 knlist_init_mtx(&tp->tun_rsel.si_note, &tp->tun_mtx); in tun_create_device()1699 error = mtx_sleep(tp, &tp->tun_mtx, PCATCH | (PZERO + 1), in tunread()