Searched refs:rnh_lock (Results 1 - 20 of 20) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_rmx.c145 * which the routing lock (rnh_lock) is held and thus protects the variable.
160 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
231 * rt_gateway, since holding rnh_lock here
287 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
374 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
401 * since holding rnh_lock here prevents another thread
449 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
468 * use rt_key, rt_gateway, since holding rnh_lock
510 lck_mtx_lock(rnh_lock);
548 lck_mtx_unlock(rnh_lock);
[all...]
H A Dnd6.c152 * Because rnh_lock and rt_lock for the entry are held during those
158 * - Routing lock (rnh_lock)
210 * Insertion and removal from llinfo_nd6 must be done with rnh_lock held.
213 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED); \
222 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED); \
654 * therefore protected by rnh_lock. For obvious reasons, we cannot
655 * hold rnh_lock across calls that might lead to code paths which
656 * attempt to acquire rnh_lock, else we deadlock. Hence for such
657 * cases we drop rt_lock and rnh_lock, make the calls, and repeat the
664 lck_mtx_lock(rnh_lock);
[all...]
H A Dnd6_nbr.c2264 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_NOTOWNED);
2265 lck_mtx_lock(rnh_lock);
2291 lck_mtx_unlock(rnh_lock);
2311 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_NOTOWNED);
2312 lck_mtx_lock(rnh_lock);
2337 lck_mtx_unlock(rnh_lock);
H A Din6.c259 lck_mtx_lock(rnh_lock);
301 lck_mtx_unlock(rnh_lock);
H A Dnd6_rtr.c4134 lck_mtx_lock(rnh_lock);
4139 lck_mtx_unlock(rnh_lock);
4150 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
4182 * rnh_lock here prevents another thread from calling rt_setgate()
/darwin-on-arm/xnu/bsd/net/
H A Droute.c104 * lock (rnh_lock) and the per-entry lock (rt_lock); the latter is a mutex that
119 * In cases where both rnh_lock and rt_lock must be held, the former must be
121 * that rnh_lock be acquired first before rt_lock, but in case both must be
128 * - Routing table lock (rnh_lock).
147 * - Always written/modified with both rnh_lock and rt_lock held.
149 * - May be read freely with rnh_lock held, else must hold rt_lock
152 * - In the event rnh_lock is not acquired, or is not possible to be
160 * When rnh_lock is held rt_setgate(), rt_setif(), and rtsetifa() are
176 * INSERTION of an entry into the radix tree holds the rnh_lock, checks
180 * LOOKUP of an entry holds the rnh_lock an
208 lck_mtx_t *rnh_lock = &rnh_lock_data; variable
[all...]
H A Dnetsrc.c149 lck_mtx_lock(rnh_lock);
152 lck_mtx_unlock(rnh_lock);
202 lck_mtx_lock(rnh_lock);
205 lck_mtx_unlock(rnh_lock);
H A Drtsock.c345 lck_mtx_lock(rnh_lock);
564 * Holding rnh_lock here prevents the possibility of
691 lck_mtx_unlock(rnh_lock);
833 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
881 * rnh_lock here prevents another thread from calling
1259 * interface will be locked. Caller must hold rnh_lock and rt_lock.
1271 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
1865 * This test is done without holding rnh_lock; in the even that
1896 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
1932 lck_mtx_lock(rnh_lock); variable
1938 lck_mtx_unlock(rnh_lock); variable
1942 lck_mtx_lock(rnh_lock); variable
1948 lck_mtx_unlock(rnh_lock); variable
[all...]
H A Dif_llreach.c448 lck_mtx_lock(rnh_lock);
470 lck_mtx_unlock(rnh_lock);
H A Droute.h481 __private_extern__ lck_mtx_t *rnh_lock; variable
H A Dntstat.c329 lck_mtx_lock(rnh_lock);
331 lck_mtx_unlock(rnh_lock);
399 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
401 /* RTF_UP can't change while rnh_lock is held */
434 lck_mtx_lock(rnh_lock);
447 lck_mtx_unlock(rnh_lock);
H A Dif.c1191 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
3260 * since holding rnh_lock here prevents another thread
3288 lck_mtx_lock(rnh_lock);
3290 lck_mtx_unlock(rnh_lock);
3330 lck_mtx_lock(rnh_lock);
3332 lck_mtx_unlock(rnh_lock);
H A Dkpi_interface.c489 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
532 lck_mtx_lock(rnh_lock);
536 lck_mtx_unlock(rnh_lock);
H A Ddlil.c314 * radix node head (rnh_lock), in tandem with settting/clearing the
4582 lck_mtx_lock(rnh_lock);
4601 lck_mtx_unlock(rnh_lock);
4752 lck_mtx_lock(rnh_lock);
4769 lck_mtx_unlock(rnh_lock);
4776 lck_mtx_unlock(rnh_lock);
4802 lck_mtx_unlock(rnh_lock);
/darwin-on-arm/xnu/bsd/netinet/
H A Din_rmx.c112 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
177 * rt_gateway, since holding rnh_lock here
299 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
323 * holding rnh_lock here prevents another thread from
368 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
385 * use rt_key, rt_gateway since holding rnh_lock
433 lck_mtx_lock(rnh_lock);
471 lck_mtx_unlock(rnh_lock);
485 lck_mtx_lock(rnh_lock);
487 lck_mtx_unlock(rnh_lock);
[all...]
H A Din_arp.c126 * The following are protected by rnh_lock
148 * Because rnh_lock and rt_lock for the entry are held during those
154 * - Routing lock (rnh_lock)
494 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
516 * rnh_lock here prevents another thread from calling
532 lck_mtx_lock(rnh_lock);
546 lck_mtx_unlock(rnh_lock);
593 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_OWNED);
1408 * rnh_lock and re-hold rt_lock to avoid violating the
1413 lck_mtx_lock(rnh_lock);
[all...]
H A Din.c783 lck_mtx_lock(rnh_lock);
798 lck_mtx_unlock(rnh_lock);
1455 lck_mtx_lock(rnh_lock);
1464 lck_mtx_unlock(rnh_lock);
1649 lck_mtx_lock(rnh_lock);
1698 lck_mtx_unlock(rnh_lock);
1712 lck_mtx_unlock(rnh_lock);
H A Draw_ip.c720 lck_mtx_lock(rnh_lock);
732 lck_mtx_unlock(rnh_lock);
H A Dip_output.c3206 lck_mtx_lock(rnh_lock);
3226 lck_mtx_unlock(rnh_lock);
H A Dtcp_subr.c2126 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_NOTOWNED);
2208 lck_mtx_assert(rnh_lock, LCK_MTX_ASSERT_NOTOWNED);

Completed in 104 milliseconds