Searched refs:rsmrc_lock (Results 1 – 2 of 2) sorted by relevance
146 kmutex_t rsmrc_lock; /* sync on resource */ member179 #define RSMRC_LOCK(p) mutex_enter(&(p)->rsmrc_lock)180 #define RSMRC_UNLOCK(p) mutex_exit(&(p)->rsmrc_lock)181 #define RSMRC_HELD(p) MUTEX_HELD(&(p)->rsmrc_lock)182 #define RSMRC_TRY(p) mutex_tryenter(&(p)->rsmrc_lock)253 #define s_lock s_hdr.rsmrc_lock326 krwlock_t rsmrc_lock; member
611 rw_init(&rsm_resource.rsmrc_lock, NULL, RW_DRIVER, NULL); in _init()696 rw_destroy(&rsm_resource.rsmrc_lock); in _fini()854 mutex_init(&p->rsmrc_lock, NULL, MUTEX_DRIVER, (void *) NULL); in rsm_attach()984 mutex_destroy(&p->rsmrc_lock); in rsm_detach()1127 rw_enter(&rsm_resource.rsmrc_lock, RW_WRITER); in rsmresource_alloc()1144 rsmrc_lock); in rsmresource_alloc()1162 rw_exit(&rsm_resource.rsmrc_lock); in rsmresource_alloc()1192 rw_exit(&rsm_resource.rsmrc_lock); in rsmresource_alloc()1240 rw_exit(&rsm_resource.rsmrc_lock); in rsmresource_alloc()1249 rw_exit(&rsm_resource.rsmrc_lock); in rsmresource_alloc()[all …]