Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/sys/
H A Drwlock_impl.h54 #define RW_WRITE_LOCK(thread) ((uintptr_t)(thread) | RW_WRITE_LOCKED) macro
61 #define RW_DOUBLE_LOCK (RW_WRITE_LOCK(0) | RW_READ_LOCK)
74 (RW_OWNER | RW_WRITE_LOCKED)) == RW_WRITE_LOCK(curthread))
/titanic_50/usr/src/uts/common/os/
H A Drwlock.c291 lock_value = RW_WRITE_LOCK(curthread); in rw_enter_sleep()
423 lock_value = RW_WRITE_LOCK(curthread); in rw_exit_wakeup()
465 new = RW_WRITE_LOCK(curthread) | in rw_exit_wakeup()
507 new = RW_WRITE_LOCK(next_writer); in rw_exit_wakeup()
553 if (casip(&lp->rw_wwwh, 0, RW_WRITE_LOCK(curthread)) != 0) in rw_tryenter()
575 RW_READ_LOCK - RW_WRITE_LOCK(curthread)) & RW_HAS_WAITERS) { in rw_downgrade()
601 new = old + RW_WRITE_LOCK(curthread) - RW_READ_LOCK; in rw_tryupgrade()