148:
149: simple_lock(&tun_softc_lock);
150: LIST_FOREACH(tp, &tun_softc_list, tun_list)
153: if (tp)
154: simple_lock(&tp->tun_lock);
155: simple_unlock(&tun_softc_lock);
169:
170: simple_lock(&tun_softc_lock);
171: LIST_FOREACH(tp, &tunz_softc_list, tun_list)
238:
239: simple_lock(&tun_softc_lock);
240: LIST_INSERT_HEAD(&tun_softc_list, tp, tun_list);
313: s = splnet();
314: simple_lock(&tun_softc_lock);
315: simple_lock(&tp->tun_lock);
316: LIST_REMOVE(tp, tun_list);
538: s = splnet();
539: simple_lock(&tp->tun_lock);
540:
609: s = splnet();
610: simple_lock(&tp->tun_lock);
611: TUNDEBUG ("%s: tun_output\n", ifp->if_xname);
1053: s = splnet();
1054: simple_lock(&tp->tun_lock);
1055: if ((tp->tun_flags & TUN_INITED) == 0) {
1096:
1097: simple_lock(&tp->tun_lock);
1098: if (!IF_IS_EMPTY(&ifp->if_snd)) {