Lines Matching refs:kso_lock
59 kmutex_t kso_lock; member
72 mutex_init(&sock->kso_lock, NULL, MUTEX_DEFAULT, NULL); in _ksocket_ctor()
83 mutex_destroy(&sock->kso_lock); in _ksocket_dtor()
445 mutex_enter(&ks->kso_lock); in ksocket_close()
448 mutex_exit(&ks->kso_lock); in ksocket_close()
464 cv_wait(&ks->kso_closing_cv, &ks->kso_lock); in ksocket_close()
466 mutex_exit(&ks->kso_lock); in ksocket_close()
553 if (!mutex_owned(&ks->kso_lock)) { in ksocket_hold()
554 mutex_enter(&ks->kso_lock); in ksocket_hold()
556 mutex_exit(&ks->kso_lock); in ksocket_hold()
569 if (!mutex_owned(&ks->kso_lock)) { in ksocket_rele()
570 mutex_enter(&ks->kso_lock); in ksocket_rele()
573 mutex_exit(&ks->kso_lock); in ksocket_rele()