Lines Matching refs:lock
75 #include <kern/lock.h>
104 * lock (rnh_lock) and the per-entry lock (rt_lock); the latter is a mutex that
109 * The global routing lock is used to serialize all accesses to the radix
115 * The per-route entry lock is used to serialize accesses to several routing
116 * entry fields (more details below.) Acquiring and releasing this lock is
120 * acquired first in order to maintain lock ordering. It is not a requirement
122 * acquired in succession, the correct lock ordering must be followed.
128 * - Routing table lock (rnh_lock).
136 * - Routing entry lock (rt_lock) for read/write access.
224 #define RTD_TRACE 0x2 /* trace alloc, free, refcnt and lock */
989 * To avoid violating lock ordering, we must drop rt_lock before
992 * we do the lock dance.
1017 * We may be blocked on other lock(s) as part of freeing
1767 * lock is dropped above, as it could lead to the same
1768 * lock being acquired if gwrt is a clone of rt.
2224 * Route entry lock must be held by caller; this routine will return
2225 * with the lock held.
2362 /* Check again since we dropped the lock above */
3191 * The following is done without first holding the ifnet lock,
3397 * Take gwrt's lock while holding route's lock;
3399 * to "rt", so no lock ordering issues.