Lines Matching defs:ssp

567 	smb_share_t *ssp;
570 * Walk the share list calling func(ssp, arg)
574 ssp = CPTOSS(co);
575 SMB_SS_LOCK(ssp);
576 func(ssp);
577 SMB_SS_UNLOCK(ssp);
588 smb_share_hold(struct smb_share *ssp)
590 smb_co_hold(SSTOCP(ssp));
594 smb_share_rele(struct smb_share *ssp)
596 smb_co_rele(SSTOCP(ssp));
600 smb_share_kill(struct smb_share *ssp)
602 smb_co_kill(SSTOCP(ssp));
614 struct smb_share *ssp = CPTOSS(cp);
617 smb_iod_shutdown_share(ssp);
618 (void) smb_smb_treedisconnect(ssp, &scred);
629 struct smb_share *ssp = CPTOSS(cp);
631 cv_destroy(&ssp->ss_conn_done);
632 smb_co_done(SSTOCP(ssp));
633 kmem_free(ssp, sizeof (*ssp));
647 struct smb_share *ssp;
651 ssp = kmem_zalloc(sizeof (struct smb_share), KM_SLEEP);
652 smb_co_init(SSTOCP(ssp), SMBL_SHARE, objtype);
653 ssp->ss_co.co_free = smb_share_free;
654 ssp->ss_co.co_gone = smb_share_gone;
656 cv_init(&ssp->ss_conn_done, objtype, CV_DRIVER, NULL);
657 ssp->ss_tid = SMB_TID_UNKNOWN;
659 bcopy(&tcon->tc_sh, &ssp->ss_ioc,
662 smb_co_addchild(VCTOCP(vcp), SSTOCP(ssp));
663 *sspp = ssp;
678 struct smb_share *ssp = NULL;
687 ssp = CPTOSS(co);
690 if (u8_strcmp(ssp->ss_name, tcon->tc_sh.sh_name, 0,
702 SMB_SS_LOCK(ssp);
703 if ((ssp->ss_flags & SMBS_GONE) == 0) {
710 SMB_SS_UNLOCK(ssp);
711 *sspp = ssp;
715 SMB_SS_UNLOCK(ssp);
718 ssp = NULL;
727 error = smb_share_create(tcon, vcp, &ssp, scred);
729 *sspp = ssp;
754 smb_share_invalidate(struct smb_share *ssp)
757 ASSERT(MUTEX_HELD(&ssp->ss_lock));
759 ssp->ss_flags &= ~SMBS_CONNECTED;
760 ssp->ss_tid = SMB_TID_UNKNOWN;
761 ssp->ss_vcgenid = 0;
771 smb_share_tcon(smb_share_t *ssp, smb_cred_t *scred)
776 SMB_SS_LOCK(ssp);
778 if (ssp->ss_flags & SMBS_CONNECTED) {
788 while (ssp->ss_flags & SMBS_RECONNECTING) {
789 ssp->ss_conn_waiters++;
790 tmo = cv_wait_sig(&ssp->ss_conn_done, &ssp->ss_lock);
791 ssp->ss_conn_waiters--;
800 if (ssp->ss_flags & SMBS_CONNECTED) {
808 ssp->ss_flags |= SMBS_RECONNECTING;
815 SMB_SS_UNLOCK(ssp);
816 error = smb_smb_treeconnect(ssp, scred);
817 SMB_SS_LOCK(ssp);
819 ssp->ss_flags &= ~SMBS_RECONNECTING;
822 if (ssp->ss_conn_waiters)
823 cv_broadcast(&ssp->ss_conn_done);
826 SMB_SS_UNLOCK(ssp);