Home
last modified time | relevance | path

Searched refs:nvf_lock (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Ddevcache.c296 rw_init(&nvfdp->nvf_lock, NULL, RW_DRIVER, NULL); in nvf_register_file()
329 nvf_lock(nvf_handle_t handle) in nvf_lock() function
331 return (&(((nvfd_t *)handle)->nvf_lock)); in nvf_lock()
343 ASSERT(RW_WRITE_HELD(&(((nvfd_t *)handle)->nvf_lock))); in nvf_mark_dirty()
350 ASSERT(RW_LOCK_HELD(&(((nvfd_t *)handle)->nvf_lock))); in nvf_is_dirty()
770 ASSERT(RW_WRITE_HELD(&nvf->nvf_lock)); in nvp_list_free()
772 ASSERT(RW_WRITE_HELD(&nvf->nvf_lock)); in nvp_list_free()
791 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock))); in fread_nvp_list()
817 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock))); in fread_nvp_list()
820 ASSERT(RW_WRITE_HELD(&(nvfd->nvf_lock))); in fread_nvp_list()
[all …]
H A Dretire_store.c150 rw_enter(nvf_lock(rio_store_handle), RW_WRITER); in retire_store_read()
153 rw_exit(nvf_lock(rio_store_handle)); in retire_store_read()
180 ASSERT(RW_WRITE_HELD(nvf_lock(nvfh))); in retire_list_free()
201 ASSERT(RW_WRITE_HELD(nvf_lock(nvfh))); in rio_store_decode()
255 ASSERT(RW_WRITE_HELD(nvf_lock(nvfh))); in rio_store_encode()
331 rw_enter(nvf_lock(rio_store_handle), RW_WRITER); in e_ddi_retire_persist()
343 rw_exit(nvf_lock(rio_store_handle)); in e_ddi_retire_persist()
358 rw_exit(nvf_lock(rio_store_handle)); in e_ddi_retire_persist()
377 rw_enter(nvf_lock(rio_store_handle), RW_WRITER); in e_ddi_retire_unpersist()
395 rw_exit(nvf_lock(rio_store_handle)); in e_ddi_retire_unpersist()
[all …]
H A Ddevid_cache.c204 rw_enter(nvf_lock(dcfd_handle), RW_WRITER); in devid_cache_read()
207 rw_exit(nvf_lock(dcfd_handle)); in devid_cache_read()
228 ASSERT(RW_WRITE_HELD(nvf_lock(dcfd_handle))); in devid_list_free()
261 ASSERT(RW_WRITE_HELD(nvf_lock(dcfd_handle))); in devid_cache_unpack_nvlist()
301 ASSERT(RW_WRITE_HELD(nvf_lock(dcfd_handle))); in devid_cache_pack_list()
554 rw_enter(nvf_lock(dcfd_handle), RW_WRITER); in e_devid_cache_register_cmn()
570 rw_exit(nvf_lock(dcfd_handle)); in e_devid_cache_register_cmn()
617 rw_exit(nvf_lock(dcfd_handle)); in e_devid_cache_register_cmn()
642 rw_exit(nvf_lock(dcfd_handle)); in e_devid_cache_register_cmn()
674 rw_enter(nvf_lock(dcfd_handle), RW_WRITER); in e_devid_cache_unregister()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c138 static kmutex_t nvf_lock; /* lock for file */ variable
171 mutex_init(&nvf_lock, NULL, MUTEX_DRIVER, NULL); in nvf_init()
178 mutex_enter(&nvf_lock); in nvf_fini()
182 mutex_exit(&nvf_lock); in nvf_fini()
184 mutex_enter(&nvf_lock); in nvf_fini()
193 mutex_exit(&nvf_lock); in nvf_fini()
196 mutex_destroy(&nvf_lock); in nvf_fini()
208 mutex_enter(&nvf_lock); in nvf_load()
214 mutex_exit(&nvf_lock); in nvf_load()
220 mutex_exit(&nvf_lock); in nvf_load()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_ncache.c174 rw_enter(nvf_lock(sdevfd_handle), RW_WRITER); in sdev_ncache_setup()
179 rw_exit(nvf_lock(sdevfd_handle)); in sdev_ncache_setup()
211 ASSERT(RW_WRITE_HELD(nvf_lock(fd))); in sdev_ncache_list_free()
238 ASSERT(RW_WRITE_HELD(nvf_lock(fd))); in sdev_ncache_unpack_nvlist()
293 ASSERT(RW_WRITE_HELD(nvf_lock(fd))); in sdev_ncache_pack_list()
367 ASSERT(RW_WRITE_HELD(nvf_lock(sdevfd_handle))); in sdev_ncache_process_store()
417 rw_enter(nvf_lock(fd), RW_WRITER); in sdev_ncache_write_complete()
419 rw_exit(nvf_lock(fd)); in sdev_ncache_write_complete()
442 rw_enter(nvf_lock(sdevfd_handle), RW_WRITER); in sdev_ncache_write()
468 rw_exit(nvf_lock(sdevfd_handle)); in sdev_ncache_write()
/illumos-gate/usr/src/uts/common/sys/
H A Ddevcache.h68 krwlock_t *nvf_lock(nvf_handle_t);
H A Ddevcache_impl.h97 krwlock_t nvf_lock; /* lock for data list */ member
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_boot.c411 rw_enter(nvf_lock(puafd_handle), RW_WRITER); in pci_unitaddr_cache_init()
413 rw_exit(nvf_lock(puafd_handle)); in pci_unitaddr_cache_init()
465 ASSERT(RW_WRITE_HELD(nvf_lock(hdl))); in pci_cache_pack_nvlist()
510 ASSERT(RW_WRITE_HELD(nvf_lock(hdl))); in pci_cache_free_list()
537 rw_enter(nvf_lock(puafd_handle), RW_READER); in pci_bus_unitaddr()
549 rw_exit(nvf_lock(puafd_handle)); in pci_bus_unitaddr()
560 rw_enter(nvf_lock(puafd_handle), RW_WRITER); in pci_unitaddr_cache_create()
576 rw_exit(nvf_lock(puafd_handle)); in pci_unitaddr_cache_create()