Home
last modified time | relevance | path

Searched refs:m_owner (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/lib/libfakekernel/common/
H A Dmutex.c43 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()
H A Dcond.c88 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()
/titanic_50/usr/src/uts/sparc/v9/sys/
H A Dmutex_impl.h72 #define m_owner m_adaptive._m_owner macro
78 #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 = 0
93 #define MUTEX_TYPE_ADAPTIVE(lp) (((lp)->m_owner & MUTEX_DEAD) == 0)
97 (lp)->m_owner = ((uintptr_t)curthread | MUTEX_DEAD)
/titanic_50/usr/src/uts/intel/sys/
H A Dmutex_impl.h72 #define m_owner m_adaptive._m_owner macro
81 #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 = 0
96 #define MUTEX_TYPE_ADAPTIVE(lp) (((lp)->m_owner & MUTEX_DEAD) == 0)
100 (lp)->m_owner = ((uintptr_t)curthread | MUTEX_DEAD)
/titanic_50/usr/src/lib/libzpool/common/
H A Dkernel.c143 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 …]
/titanic_50/usr/src/uts/sparc/v7/sys/
H A Dmutex_impl.h80 #define m_owner m_adaptive._m_owner macro
90 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner << PTR24_LSB))
96 (lp)->m_waiters = 0, (lp)->m_owner = 0
/titanic_50/usr/src/lib/libfakekernel/common/sys/
H A Dmutex.h62 void *m_owner; member
/titanic_50/usr/src/uts/common/os/
H A Dmutex.c622 if (lp->m_owner == 0 && !MUTEX_HAS_WAITERS(lp)) { in mutex_destroy()
/titanic_50/usr/src/lib/libzpool/common/sys/
H A Dzfs_context.h209 void *m_owner; member