Lines Matching refs:so_lock
90 struct mtx so_lock; member
224 #define SOCK_MTX(so) &(so)->so_lock
225 #define SOCK_LOCK(so) mtx_lock(&(so)->so_lock)
226 #define SOCK_OWNED(so) mtx_owned(&(so)->so_lock)
227 #define SOCK_UNLOCK(so) mtx_unlock(&(so)->so_lock)
228 #define SOCK_LOCK_ASSERT(so) mtx_assert(&(so)->so_lock, MA_OWNED)
229 #define SOCK_UNLOCK_ASSERT(so) mtx_assert(&(so)->so_lock, MA_NOTOWNED)
233 mtx_lock(&(sol)->so_lock); \
237 #define SOLISTEN_TRYLOCK(sol) mtx_trylock(&(sol)->so_lock)
241 mtx_unlock(&(sol)->so_lock); \
244 mtx_assert(&(sol)->so_lock, MA_OWNED); \