Lines Matching refs:tunmtx
114 * tun_list is protected by global tunmtx. Other mutable fields are
172 * All mutable global variables in if_tun are locked using tunmtx, with
176 static struct mtx tunmtx;
656 mtx_lock(&tunmtx);
658 mtx_unlock(&tunmtx);
712 mtx_lock(&tunmtx);
715 mtx_unlock(&tunmtx);
717 mtx_lock(&tunmtx);
719 mtx_unlock(&tunmtx);
725 mtx_destroy(&tunmtx);
755 mtx_init(&tunmtx, "tunmtx", NULL, MTX_DEF);
759 drv->unrhdr = new_unrhdr(0, IF_MAXUNIT, &tunmtx);
829 mtx_lock(&tunmtx);
831 mtx_unlock(&tunmtx);