_curthread
extern ulwp_t *_curthread(void);
#define curthread (_curthread())
ASSERT(mp->m_owner == _curthread());
mp->m_owner = _curthread();
ASSERT(mp->m_owner == _curthread());
mp->m_owner = _curthread();
kthread_t *t = _curthread();
mp->m_owner = _curthread();
ASSERT(mp->m_owner == _curthread());
void *t = _curthread();
ASSERT(rwlp->rw_owner == _curthread());
rwlp->rw_owner = _curthread();
ASSERT(rwlp->rw_owner == _curthread());
rwlp->rw_owner = _curthread();
extern kthread_t *_curthread(void); /* returns thread pointer */
#define curthread (_curthread()) /* current thread pointer */