Lines Matching refs:pcp

263 	prcommon_t *pcp = VTOP(vp)->pr_common;  in prnotify()  local
265 mutex_enter(&pcp->prc_mutex); in prnotify()
266 cv_broadcast(&pcp->prc_wait); in prnotify()
267 mutex_exit(&pcp->prc_mutex); in prnotify()
268 if (pcp->prc_flags & PRC_POLL) { in prnotify()
276 pcp->prc_flags &= ~PRC_POLL; in prnotify()
277 pollwakeup(&pcp->prc_pollhead, POLLHUP); in prnotify()
286 prcommon_t *pcp; in prfreenotify() local
290 pcp = pnp->pr_common; in prfreenotify()
291 ASSERT(pcp->prc_thread == NULL); in prfreenotify()
292 pcp->prc_proc = NULL; in prfreenotify()
297 mutex_enter(&pcp->prc_mutex); in prfreenotify()
298 cv_broadcast(&pcp->prc_wait); in prfreenotify()
299 mutex_exit(&pcp->prc_mutex); in prfreenotify()
300 ASSERT(!(pcp->prc_flags & PRC_POLL)); in prfreenotify()
381 prcommon_t *pcp; in prlwpexit() local
397 pcp = pnp->pr_common; in prlwpexit()
398 if (pcp->prc_thread == t) { in prlwpexit()
399 pcp->prc_thread = NULL; in prlwpexit()
400 pcp->prc_flags |= PRC_DESTROY; in prlwpexit()
406 pcp = pnp->pr_common; in prlwpexit()
407 pcp->prc_thread = NULL; in prlwpexit()
408 pcp->prc_flags |= PRC_DESTROY; in prlwpexit()
425 prcommon_t *pcp; in prlwpfree() local
441 pcp = pnp->pr_common; in prlwpfree()
442 ASSERT(pcp->prc_thread == NULL && in prlwpfree()
443 (pcp->prc_flags & PRC_DESTROY)); in prlwpfree()
444 pcp->prc_tslot = -1; in prlwpfree()
489 prcommon_t *pcp; in prexecend() local
511 pcp = VTOP(vp)->pr_common; in prexecend()
512 mutex_enter(&pcp->prc_mutex); in prexecend()
513 cv_broadcast(&pcp->prc_wait); in prexecend()
514 mutex_exit(&pcp->prc_mutex); in prexecend()
525 pcp = VTOP(vp)->pr_common; in prexecend()
526 mutex_enter(&pcp->prc_mutex); in prexecend()
527 cv_broadcast(&pcp->prc_wait); in prexecend()
528 mutex_exit(&pcp->prc_mutex); in prexecend()
531 pcp = pnp->pr_common; in prexecend()
532 pcp->prc_datamodel = model; in prexecend()
533 pcp->prc_tid = tid; in prexecend()
534 pcp->prc_tslot = tslot; in prexecend()
613 prcommon_t *pcp = VTOP(vp)->pr_pcommon; in prinvalidate() local
619 if ((writers = pcp->prc_writers) != 0) { in prinvalidate()
628 pcp->prc_flags &= ~PRC_EXCL; in prinvalidate()
629 ASSERT(pcp->prc_selfopens <= writers); in prinvalidate()
630 pcp->prc_selfopens = writers; in prinvalidate()
682 prcommon_t *pcp; in pr_p_lock() local
685 if ((pcp = pnp->pr_pcommon) == NULL || (p = pcp->prc_proc) == NULL) in pr_p_lock()
700 if (pcp->prc_proc == NULL) in pr_p_lock()
702 ASSERT(p == pcp->prc_proc); in pr_p_lock()
727 prcommon_t *pcp; in prlock() local
731 pcp = pnp->pr_common; in prlock()
741 ASSERT(p == pcp->prc_proc && p->p_stat != 0 && p->p_stat != SIDL); in prlock()
748 ((pcp->prc_flags & PRC_DESTROY) || (p->p_flag & SEXITING))) { in prlock()
756 if (pcp->prc_flags & PRC_LWP) { in prlock()
757 if ((zdisp == ZNO && (pcp->prc_flags & PRC_DESTROY)) || in prlock()
758 pcp->prc_tslot == -1) { in prlock()
778 pcp = pnp->pr_pcommon; /* Put on the correct sleep queue */ in prlock()
779 mutex_enter(&pcp->prc_mutex); in prlock()
781 if (!cv_wait_sig(&pcp->prc_wait, &pcp->prc_mutex)) { in prlock()
782 mutex_exit(&pcp->prc_mutex); in prlock()
785 mutex_exit(&pcp->prc_mutex); in prlock()
817 prcommon_t *pcp = pnp->pr_common; in prunlock() local
818 proc_t *p = pcp->prc_proc; in prunlock()
826 !(pcp->prc_flags & PRC_DESTROY) && in prunlock()
827 !((pcp->prc_flags & PRC_LWP) && pcp->prc_tslot == -1)) in prunlock()