Lines Matching defs:nvf_lock
97 * can be accessed with nvf_lock(). The lock must be held
296 rw_init(&nvfdp->nvf_lock, NULL, RW_DRIVER, NULL);
329 nvf_lock(nvf_handle_t handle)
331 return (&(((nvfd_t *)handle)->nvf_lock));
343 ASSERT(RW_WRITE_HELD(&(((nvfd_t *)handle)->nvf_lock)));
350 ASSERT(RW_LOCK_HELD(&(((nvfd_t *)handle)->nvf_lock)));
770 ASSERT(RW_WRITE_HELD(&nvf->nvf_lock));
772 ASSERT(RW_WRITE_HELD(&nvf->nvf_lock));
791 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock)));
817 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock)));
820 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock)));
855 ASSERT(RW_WRITE_HELD(&nvfd->nvf_lock));
960 rw_enter(&nvfd->nvf_lock, RW_READER);
967 rw_exit(&nvfd->nvf_lock);
971 if (rw_tryupgrade(&nvfd->nvf_lock) == 0) {
974 rw_exit(&nvfd->nvf_lock);
981 ASSERT(RW_WRITE_HELD(&nvfd->nvf_lock));
982 rw_exit(&nvfd->nvf_lock);
985 ASSERT(RW_WRITE_HELD(&nvfd->nvf_lock));
989 rw_exit(&nvfd->nvf_lock);
994 rw_enter(&nvfd->nvf_lock, RW_WRITER);
1029 rw_exit(&nvfd->nvf_lock);
1090 rw_enter(&nvfdp->nvf_lock, RW_READER);
1094 rw_exit(&nvfdp->nvf_lock);
1099 rw_exit(&nvfdp->nvf_lock);
1112 rw_enter(&nvfdp->nvf_lock, RW_READER);
1117 rw_exit(&nvfdp->nvf_lock);
1119 rw_enter(&nvfdp->nvf_lock, RW_READER);
1122 rw_exit(&nvfdp->nvf_lock);
1128 rw_exit(&nvfdp->nvf_lock);
1136 rw_exit(&nvfdp->nvf_lock);