Lines Matching refs:sdevfd_handle
125 static nvf_handle_t sdevfd_handle; variable
168 sdevfd_handle = nvf_register_file(&sdev_cache_ops); in sdev_ncache_setup()
169 ASSERT(sdevfd_handle); in sdev_ncache_setup()
171 list_create(nvf_list(sdevfd_handle), sizeof (nvp_devname_t), in sdev_ncache_setup()
174 rw_enter(nvf_lock(sdevfd_handle), RW_WRITER); in sdev_ncache_setup()
176 (void) nvf_read_file(sdevfd_handle); in sdev_ncache_setup()
179 rw_exit(nvf_lock(sdevfd_handle)); in sdev_ncache_setup()
210 ASSERT(fd == sdevfd_handle); in sdev_ncache_list_free()
237 ASSERT(fd == sdevfd_handle); in sdev_ncache_unpack_nvlist()
274 list_insert_tail(nvf_list(sdevfd_handle), np); in sdev_ncache_unpack_nvlist()
292 ASSERT(fd == sdevfd_handle); in sdev_ncache_pack_list()
302 listp = nvf_list(sdevfd_handle); in sdev_ncache_pack_list()
368 ASSERT(RW_WRITE_HELD(nvf_lock(sdevfd_handle))); in sdev_ncache_process_store()
370 listp = nvf_list(sdevfd_handle); in sdev_ncache_process_store()
403 ASSERT(fd == sdevfd_handle); in sdev_ncache_write_complete()
443 rw_enter(nvf_lock(sdevfd_handle), RW_WRITER); in sdev_ncache_write()
444 sdev_ncache_list_free(sdevfd_handle); in sdev_ncache_write()
467 nvf_mark_dirty(sdevfd_handle); in sdev_ncache_write()
468 list_insert_tail(nvf_list(sdevfd_handle), np); in sdev_ncache_write()
469 rw_exit(nvf_lock(sdevfd_handle)); in sdev_ncache_write()