Lines Matching defs:lock
43 #include <sys/lock.h>
75 #define UTP_LOCK(UTP) mtx_lock((UTP)->lock)
76 #define UTP_UNLOCK(UTP) mtx_unlock((UTP)->lock)
77 #define UTP_LOCK_ASSERT(UTP) mtx_assert((UTP)->lock, MA_OWNED)
509 struct mtx *lock, struct sysctl_ctx_list *ctx,
517 utp->lock = lock;
568 * Here we need the lock for synchronisation with the daemon.
579 msleep(utp, utp->lock, PZERO, "utopia_detach", hz);
588 * through the list without disturbing us (we lock the list while getting