Lines Matching refs:if_lock
377 lck_mtx_assert(ifp->if_lock, what);
386 lck_rw_lock_shared(ifp->if_lock);
388 lck_mtx_assert(ifp->if_lock, LCK_MTX_ASSERT_NOTOWNED);
389 lck_mtx_lock(ifp->if_lock);
398 lck_rw_lock_exclusive(ifp->if_lock);
400 lck_mtx_assert(ifp->if_lock, LCK_MTX_ASSERT_NOTOWNED);
401 lck_mtx_lock(ifp->if_lock);
410 lck_rw_done(ifp->if_lock);
412 lck_mtx_assert(ifp->if_lock, LCK_MTX_ASSERT_OWNED);
413 lck_mtx_unlock(ifp->if_lock);
2431 if ((ifp->if_eflags & IFEF_REUSE) == 0 || ifp->if_lock == 0)
2433 ifp->if_lock = lck_rw_alloc_init(ifnet_lock_group, ifnet_lock_attr);
2435 ifp->if_lock = lck_mtx_alloc_init(ifnet_lock_group, ifnet_lock_attr);
2438 if (ifp->if_lock == 0) {
2781 if (!ifp1->if_lock)
2837 if (ifp->if_lock)
2856 if (ifp->if_lock)