Lines Matching refs:p_lock

125 	mutex_enter(&p->p_lock);
127 mutex_exit(&p->p_lock);
138 mutex_enter(&p->p_lock);
140 mutex_exit(&p->p_lock);
180 * is set (it drops and reacquires p->p_lock while leaving P_PR_LOCK set).
183 * and reacquires p->p_lock and dropping p->p_lock here would be damaging.
230 ASSERT(MUTEX_HELD(&p->p_lock));
372 ASSERT(MUTEX_HELD(&p->p_lock));
386 mutex_exit(&p->p_lock);
401 mutex_enter(&p->p_lock);
529 mutex_enter(&p->p_lock);
786 mutex_exit(&p->p_lock);
799 * If we have been blocked since the p_lock was dropped off
823 ASSERT(MUTEX_HELD(&p->p_lock));
865 ASSERT(MUTEX_HELD(&p->p_lock));
895 t->t_proc_flag |= TP_STOPPING; /* must set before dropping p_lock */
896 mutex_exit(&p->p_lock);
900 mutex_enter(&p->p_lock);
907 * and reacquired p->p_lock. Double-check now
928 * and reacquired p->p_lock. Double-check now
1033 mutex_exit(&p->p_lock);
1046 * Grab p->p_lock before releasing pidlock so the
1049 mutex_enter(&p->p_lock);
1107 mutex_exit(&p->p_lock);
1114 * Grab p->p_lock before releasing pidlock so
1117 mutex_enter(&p->p_lock);
1138 * and reacquired p->p_lock. Double-check now
1186 * we released p->p_lock; make one last check.
1202 * while we were not holding p->p_lock.
1222 mutex_exit(&p->p_lock);
1226 mutex_enter(&p->p_lock);
1293 mutex_enter(&p->p_lock);
1307 * Re-check lwp_cursig after we acquire p_lock. Since p_lock was
1320 mutex_exit(&p->p_lock);
1327 * this signal from pending to current (we dropped p->p_lock).
1342 mutex_exit(&p->p_lock);
1372 mutex_exit(&p->p_lock);
1384 mutex_exit(&p->p_lock);
1439 mutex_exit(&p->p_lock);
1464 mutex_enter(&p->p_lock);
1488 mutex_enter(&p->p_lock);
1509 ASSERT(MUTEX_HELD(&p->p_lock));
1568 ASSERT(MUTEX_HELD(&p->p_lock));
1645 mutex_exit(&p->p_lock);
1654 mutex_enter(&p->p_lock);
1673 ASSERT(MUTEX_HELD(&p->p_lock));
1758 mutex_enter(&pp->p_lock);
1786 mutex_exit(&pp->p_lock);
1862 mutex_enter(&myprocp->p_lock);
1864 mutex_exit(&myprocp->p_lock);
1874 mutex_enter(&p->p_lock);
1876 mutex_exit(&p->p_lock);
1886 mutex_enter(&p->p_lock);
1892 mutex_exit(&p->p_lock);
1922 ASSERT(MUTEX_HELD(&p->p_lock));
1972 mutex_enter(&p->p_lock);
1975 mutex_exit(&p->p_lock);
1982 mutex_exit(&p->p_lock);
2008 mutex_exit(&p->p_lock);
2022 * We must be holding p->p_lock unless the process is
2025 ASSERT(MUTEX_HELD(&p->p_lock) ||
2115 ASSERT(MUTEX_HELD(&p->p_lock));
2135 ASSERT(MUTEX_HELD(&p->p_lock));
2173 mutex_enter(&p->p_lock);
2181 mutex_exit(&p->p_lock);
2271 owned = mutex_owned(&p->p_lock); /* this is filthy */
2273 mutex_enter(&p->p_lock);
2315 mutex_exit(&p->p_lock);
2337 owned = mutex_owned(&p->p_lock); /* this is filthy */
2339 mutex_enter(&p->p_lock);
2344 mutex_exit(&p->p_lock);
2359 owned = mutex_owned(&p->p_lock); /* this is filthy */
2361 mutex_enter(&p->p_lock);
2368 mutex_exit(&p->p_lock);
2440 ASSERT(MUTEX_HELD(&curproc->p_lock));
2477 /* make sure that p_lock of the affected process is held */
2505 ASSERT(MUTEX_HELD(&p->p_lock));
2566 mutex_enter(&p->p_lock);
2582 mutex_exit(&p->p_lock);
2598 mutex_enter(&p->p_lock);
2603 mutex_exit(&p->p_lock);
2607 mutex_exit(&p->p_lock);
2621 mutex_exit(&p->p_lock);
2646 * We don't need to acquire p->p_lock here;
2696 mutex_enter(&p->p_lock);
2723 /* test for any activity that requires p->p_lock */