Lines Matching refs:privinfo_lock
70 krwlock_t privinfo_lock; variable
90 rw_init(&privinfo_lock, NULL, RW_DRIVER, NULL); in priv_init()
289 rw_enter(&privinfo_lock, RW_READER); in priv_hold_implinfo()
296 rw_exit(&privinfo_lock); in priv_release_implinfo()
355 rw_enter(&privinfo_lock, RW_READER); in priv_getbyname()
359 rw_exit(&privinfo_lock); in priv_getbyname()
366 rw_exit(&privinfo_lock); in priv_getbyname()
374 rw_exit(&privinfo_lock); in priv_getbyname()
385 rw_exit(&privinfo_lock); in priv_getbyname()
390 if (!rw_tryupgrade(&privinfo_lock)) { in priv_getbyname()
391 rw_exit(&privinfo_lock); in priv_getbyname()
392 rw_enter(&privinfo_lock, RW_WRITER); in priv_getbyname()
400 rw_exit(&privinfo_lock); in priv_getbyname()
415 rw_exit(&privinfo_lock); in priv_getbyname()