Lines Matching refs:lp

136 srinterrupt(iwscn_list_t *lp, boolean_t wait)
140 while (lp->wl_ref_cnt != 0) {
141 strsetrerror(lp->wl_vp, EINTR, 0, NULL);
142 strsetwerror(lp->wl_vp, EINTR, 0, NULL);
156 iwscn_list_t *lp, **lpp;
165 for (lpp = &iwscn_list; (lp = *lpp) != NULL; lpp = &lp->wl_next) {
166 if (lp->wl_vp == vp)
169 if (lp != NULL)
171 *lpp = lp->wl_next;
173 return (lp);
183 iwscn_list_t *lp;
192 if ((lp = srrm(vp)) == NULL) {
193 lp = kmem_zalloc(sizeof (*lp), KM_SLEEP);
194 lp->wl_vp = vp;
195 lp->wl_is_console = is_console;
202 lp->wl_next = iwscn_list;
203 iwscn_list = lp;
216 iwscn_list_t *lp, **lpp;
246 for (lpp = &iwscn_list; (lp = *lpp) != NULL; )
247 lpp = &lp->wl_next;
258 iwscn_list_t *lp;
262 lp = iwscn_list;
263 ASSERT(lp->wl_ref_cnt >= 0);
264 lp->wl_ref_cnt++;
267 return (lp);
272 srrele(iwscn_list_t *lp)
274 ASSERT(lp != NULL);
276 ASSERT(lp->wl_ref_cnt > 0);
277 lp->wl_ref_cnt--;
285 iwscn_list_t *lp;
290 lp = srhold();
291 error = strread(lp->wl_vp, uio, cred);
292 srrele(lp);
300 iwscn_list_t *lp;
305 lp = srhold();
306 error = strwrite(lp->wl_vp, uio, cred);
307 srrele(lp);
316 iwscn_list_t *lp;
321 lp = srhold();
322 error = VOP_POLL(lp->wl_vp, events, anyyet, reventsp, phpp, NULL);
323 srrele(lp);
332 iwscn_list_t *lp;
417 lp = srhold();
418 *rvalp = (str_vp(f->f_vnode) == lp->wl_vp);
419 srrele(lp);
430 lp = srhold();
440 (void) strioctl(lp->wl_vp, I_LOOK, (intptr_t)modname,
444 srrele(lp);
450 error = VOP_IOCTL(lp->wl_vp, cmd, arg, flag, cred, rvalp, NULL);
452 srrele(lp);
458 lp = srhold();
459 error = VOP_IOCTL(lp->wl_vp, cmd, arg, flag, cred, rvalp, NULL);
460 srrele(lp);
468 iwscn_list_t *lp;
558 for (lp = iwscn_list; lp != NULL; lp = lp->wl_next) {
559 ASSERT(lp->wl_vp->v_stream != NULL);
560 str_cn_clean(lp->wl_vp);
571 iwscn_list_t *lp;
584 lp = srrm(iwscn_list->wl_vp);
585 ASSERT(lp != NULL);
586 srinterrupt(lp, B_TRUE);
588 if (lp->wl_is_console == B_TRUE)
590 (void) VOP_CLOSE(lp->wl_vp, 0, 1, (offset_t)0, kcred,
593 kmem_free(lp, sizeof (*lp));