Lines Matching refs:clientp
202 vntsd_client_t *clientp;
212 clientp = (vntsd_client_t *)malloc(sizeof (vntsd_client_t));
213 if (clientp == NULL) {
218 bzero(clientp, sizeof (vntsd_client_t));
220 clientp->sockfd = sockfd;
221 clientp->cons_tid = (thread_t)-1;
223 (void) mutex_init(&clientp->lock, USYNC_THREAD|LOCK_ERRORCHECK, NULL);
231 vntsd_free_client(clientp);
236 if ((rv = vntsd_que_append(&groupp->no_cons_clientpq, clientp))
239 vntsd_free_client(clientp);
253 vntsd_free_client(clientp);
257 thr_arg->arg = clientp;
259 (void) mutex_lock(&clientp->lock);
264 thr_arg, THR_DETACHED, &clientp->cons_tid)) {
267 (void) mutex_unlock(&clientp->lock);
269 (void) vntsd_que_rm(&groupp->no_cons_clientpq, clientp);
271 vntsd_free_client(clientp);
276 (void) mutex_unlock(&clientp->lock);