Searched refs:m_owner (Results 1 – 9 of 9) sorted by relevance
43 mp->m_owner = _KTHREAD_INVALID; in kmutex_init()50 mp->m_owner = _KTHREAD_INVALID; in kmutex_destroy()57 mp->m_owner = _curthread(); in mutex_enter()67 mp->m_owner = _curthread(); in mutex_tryenter()76 ASSERT(mp->m_owner == _curthread()); in mutex_exit()77 mp->m_owner = _KTHREAD_INVALID; in mutex_exit()87 return (mp->m_owner); in mutex_owner()94 return (t == mp->m_owner); in mutex_owned()
88 ASSERT(mp->m_owner == _curthread()); in cv__wait()89 mp->m_owner = _KTHREAD_INVALID; in cv__wait()91 mp->m_owner = _curthread(); in cv__wait()160 ASSERT(mp->m_owner == _curthread()); in cv__twait()161 mp->m_owner = _KTHREAD_INVALID; in cv__twait()163 mp->m_owner = _curthread(); in cv__twait()
72 #define m_owner m_adaptive._m_owner macro78 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD))84 while ((old = (lp)->m_owner) != 0 && \85 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \89 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS)90 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 093 #define MUTEX_TYPE_ADAPTIVE(lp) (((lp)->m_owner & MUTEX_DEAD) == 0)97 (lp)->m_owner = ((uintptr_t)curthread | MUTEX_DEAD)
72 #define m_owner m_adaptive._m_owner macro81 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD))87 while ((old = (lp)->m_owner) != 0 && \88 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \92 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS)93 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 096 #define MUTEX_TYPE_ADAPTIVE(lp) (((lp)->m_owner & MUTEX_DEAD) == 0)100 (lp)->m_owner = ((uintptr_t)curthread | MUTEX_DEAD)
143 mp->m_owner = NULL; in zmutex_init()152 ASSERT(mp->m_owner == NULL); in zmutex_destroy()154 mp->m_owner = (void *)-1UL; in zmutex_destroy()162 ASSERT(mp->m_owner != (void *)-1UL); in zmutex_enter()163 ASSERT(mp->m_owner != curthread); in zmutex_enter()165 ASSERT(mp->m_owner == NULL); in zmutex_enter()166 mp->m_owner = curthread; in zmutex_enter()173 ASSERT(mp->m_owner != (void *)-1UL); in mutex_tryenter()175 ASSERT(mp->m_owner == NULL); in mutex_tryenter()176 mp->m_owner = curthread; in mutex_tryenter()[all …]
80 #define m_owner m_adaptive._m_owner macro90 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner << PTR24_LSB))96 (lp)->m_waiters = 0, (lp)->m_owner = 0
62 void *m_owner; member
622 if (lp->m_owner == 0 && !MUTEX_HAS_WAITERS(lp)) { in mutex_destroy()
209 void *m_owner; member