Lines Matching refs:txl
122 smb_net_txl_constructor(smb_txlst_t *txl)
124 ASSERT(txl->tl_magic != SMB_TXLST_MAGIC);
126 mutex_init(&txl->tl_mutex, NULL, MUTEX_DEFAULT, NULL);
127 cv_init(&txl->tl_wait_cv, NULL, CV_DEFAULT, NULL);
128 txl->tl_active = B_FALSE;
129 txl->tl_magic = SMB_TXLST_MAGIC;
138 smb_net_txl_destructor(smb_txlst_t *txl)
140 ASSERT(txl->tl_magic == SMB_TXLST_MAGIC);
142 txl->tl_magic = 0;
143 cv_destroy(&txl->tl_wait_cv);
144 mutex_destroy(&txl->tl_mutex);
158 smb_txlst_t *txl = &s->s_txlst;
166 mutex_enter(&txl->tl_mutex);
167 while (txl->tl_active)
168 cv_wait(&txl->tl_wait_cv, &txl->tl_mutex);
169 txl->tl_active = B_TRUE;
170 mutex_exit(&txl->tl_mutex);
190 mutex_enter(&txl->tl_mutex);
191 txl->tl_active = B_FALSE;
192 cv_signal(&txl->tl_wait_cv);
193 mutex_exit(&txl->tl_mutex);