Home
last modified time | relevance | path

Searched refs:unp_mtx (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/sys/
H A Dunpcb.h77 struct mtx unp_mtx; /* PCB mutex */ member
/freebsd/sys/kern/
H A Duipc_usrreq.c277 #define UNP_PCB_LOCK_INIT(unp) mtx_init(&(unp)->unp_mtx, \
280 #define UNP_PCB_LOCK_DESTROY(unp) mtx_destroy(&(unp)->unp_mtx)
281 #define UNP_PCB_LOCKPTR(unp) (&(unp)->unp_mtx)
282 #define UNP_PCB_LOCK(unp) mtx_lock(&(unp)->unp_mtx)
283 #define UNP_PCB_TRYLOCK(unp) mtx_trylock(&(unp)->unp_mtx)
284 #define UNP_PCB_UNLOCK(unp) mtx_unlock(&(unp)->unp_mtx)
285 #define UNP_PCB_OWNED(unp) mtx_owned(&(unp)->unp_mtx)
286 #define UNP_PCB_LOCK_ASSERT(unp) mtx_assert(&(unp)->unp_mtx, MA_OWNED)
287 #define UNP_PCB_UNLOCK_ASSERT(unp) mtx_assert(&(unp)->unp_mtx, MA_NOTOWNED)