154: simple_lock(&tp->tun_lock);
155: simple_unlock(&tun_softc_lock);
156:
175: LIST_REMOVE(tp, tun_list);
176: simple_unlock(&tun_softc_lock);
177: #ifdef DIAGNOSTIC
240: LIST_INSERT_HEAD(&tun_softc_list, tp, tun_list);
241: simple_unlock(&tun_softc_lock);
242:
322: }
323: simple_unlock(&tun_softc_lock);
324:
333:
334: simple_unlock(&tp->tun_lock);
335: splx(s);
406: out:
407: simple_unlock(&tp->tun_lock);
408: out_nolock:
469: TUNDEBUG ("%s: closed\n", ifp->if_xname);
470: simple_unlock(&tp->tun_lock);
471: out_nolock:
587:
588: simple_unlock(&tp->tun_lock);
589: splx(s);
698: out:
699: simple_unlock(&tp->tun_lock);
700: splx(s);
828: out:
829: simple_unlock(&tp->tun_lock);
830: out_nolock:
899:
900: simple_unlock(&tp->tun_lock);
901: splx(s);
921: out:
922: simple_unlock(&tp->tun_lock);
923: out_nolock:
951: /* Unlock until we've got the data */
952: simple_unlock(&tp->tun_lock);
953: splx(s);
1072: out:
1073: simple_unlock(&tp->tun_lock);
1074: out_nolock:
1107: }
1108: simple_unlock(&tp->tun_lock);
1109: }
1147:
1148: simple_unlock(&tp->tun_lock);
1149: out_nolock:
1226: out:
1227: simple_unlock(&tp->tun_lock);
1228: out_nolock: