Lines Matching refs:lock
69 * The read/write segment lock protects all of segvn_data including the
72 * The "write" version of the segment lock, however, is required in order to
81 * is written by acquiring either the readers lock on the segment and
82 * freemem lock, or any lock combination which guarantees exclusive use
83 * of this segment (e.g., adress space writers lock,
84 * address space readers lock + segment writers lock).
87 krwlock_t lock; /* protect segvn_data and vpage array */
88 kmutex_t segfree_syncmtx; /* barrier lock for segvn_free() */
136 #define SEGVN_LOCK_ENTER(as, lock, type) rw_enter((lock), (type))
137 #define SEGVN_LOCK_EXIT(as, lock) rw_exit((lock))
138 #define SEGVN_LOCK_DOWNGRADE(as, lock) rw_downgrade((lock))
139 #define SEGVN_LOCK_TRYENTER(as, lock, type) rw_tryenter((lock), (type))
142 * Macros to test lock states.
144 #define SEGVN_LOCK_HELD(as, lock) RW_LOCK_HELD((lock))
145 #define SEGVN_READ_HELD(as, lock) RW_READ_HELD((lock))
146 #define SEGVN_WRITE_HELD(as, lock) RW_WRITE_HELD((lock))
212 kmutex_t tr_lock; /* per bucket lock */