Lines Matching defs:rt_lock

104  * 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
136 * - Routing entry lock (rt_lock) for read/write access.
140 * be done without rt_lock: RTF_GATEWAY, RTF_HOST, RTF_DYNAMIC,
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
157 * the rt_lock, so that those values will remain the same until
227 #define RTE_NAME "rtentry" /* name for zone and rt_lock */
989 * To avoid violating lock ordering, we must drop rt_lock before
1001 * the route after we drop rt_lock; to prevent the route from
1797 * parent route's rt_lock later on during the actual copying
1977 * holding and releasing the parent's rt_lock while still
1978 * holding the route's rt_lock is safe since the new route
2110 * Safe to drop rt_lock and use rt_key, since holding
2201 * Safe to drop rt_lock and use rt_key, since holding rnh_lock here
2286 * Safe to drop rt_lock and use rt_key, rt_gateway,
3100 lck_mtx_init(&rt->rt_lock, rte_mtx_grp, rte_mtx_attr);
3107 lck_mtx_destroy(&rt->rt_lock, rte_mtx_grp);
3111 rt_lock(struct rtentry *rt, boolean_t spin)
3115 lck_mtx_lock_spin(&rt->rt_lock);
3117 lck_mtx_lock(&rt->rt_lock);
3128 lck_mtx_unlock(&rt->rt_lock);
3250 /* Preserve rt_lock to help catch use-after-free cases */
3251 bzero((caddr_t)p, offsetof(struct rtentry, rt_lock));