Lines Matching defs:uipc_lock
146 * o We have a global lock, uipc_lock.
148 * o All datagram sockets are locked by uipc_lock.
159 * the global uipc_lock. When establishing a connection, the connecting
160 * socket also has its lock mutated to uipc_lock, which matches the head
163 * done on both ends, all three sockets are locked by uipc_lock. Once the
166 * lock pointers mutated away from uipc_lock, and back to the connecting
168 * by uipc_lock.
170 * o If uipc_lock is determined to be a significant source of contention,
196 static kmutex_t *uipc_lock;
229 uipc_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
279 KASSERT(lock == uipc_lock);
324 nlock = uipc_lock;
492 KASSERT(so->so_lock == uipc_lock);
739 mutex_obj_hold(uipc_lock);
740 so->so_lock = uipc_lock;
826 KASSERT(so->so_lock == uipc_lock);
848 * association with uipc_lock and give the connected
853 * pointing to the (locked) uipc_lock.
1053 * locked by uipc_lock.
1116 KASSERT(so2->so_lock == uipc_lock);
1212 * be locked by the domain-wide uipc_lock.
1215 so2->so_lock == uipc_lock);
1274 * association with uipc_lock and give the connected