Lines Matching defs:rt_lock

111  * lock (rnh_lock) and the per-entry lock (rt_lock); the latter is a mutex that
126 * In cases where both rnh_lock and rt_lock must be held, the former must be
128 * that rnh_lock be acquired first before rt_lock, but in case both must be
143 * - Routing entry lock (rt_lock) for read/write access.
147 * be done without rt_lock: RTF_GATEWAY, RTF_HOST, RTF_DYNAMIC,
154 * - Always written/modified with both rnh_lock and rt_lock held.
156 * - May be read freely with rnh_lock held, else must hold rt_lock
164 * the rt_lock, so that those values will remain the same until
232 #define RTE_NAME "rtentry" /* name for zone and rt_lock */
1040 * To avoid violating lock ordering, we must drop rt_lock before
1052 * the route after we drop rt_lock; to prevent the route from
1889 * parent route's rt_lock later on during the actual copying
2090 * holding and releasing the parent's rt_lock while still
2091 * holding the route's rt_lock is safe since the new route
2224 * Safe to drop rt_lock and use rt_key, since holding
2315 * Safe to drop rt_lock and use rt_key, since holding rnh_lock here
2400 * Safe to drop rt_lock and use rt_key, rt_gateway,
3335 lck_mtx_init(&rt->rt_lock, rte_mtx_grp, rte_mtx_attr);
3342 lck_mtx_destroy(&rt->rt_lock, rte_mtx_grp);
3346 rt_lock(struct rtentry *rt, boolean_t spin)
3350 lck_mtx_lock_spin(&rt->rt_lock);
3352 lck_mtx_lock(&rt->rt_lock);
3362 lck_mtx_unlock(&rt->rt_lock);
3492 /* Preserve rt_lock to help catch use-after-free cases */
3493 bzero((caddr_t)p, offsetof(struct rtentry, rt_lock));