Lines Matching refs:p_lock
199 * Each process has a scheduler state lock (proc::p_lock), and a
202 * following states, p_lock must be held and the process wide counters
215 * p_lock does not need to be held when transitioning among these
216 * three states, hence p_lock is rarely taken for state transitions.
433 * Must be called with p_lock held, and the LWP locked. Will unlock the
441 KASSERT(mutex_owned(t->l_proc->p_lock));
508 * Must be called with p_lock held, and the LWP locked. Will unlock the
515 KASSERT(mutex_owned(l->l_proc->p_lock));
538 * Must be called with p_lock held, and the LWP NOT locked. Will unlock the
547 KASSERT(mutex_owned(p->p_lock));
582 p_lock held.
592 KASSERT(mutex_owned(p->p_lock));
607 mutex_exit(p->p_lock);
619 mutex_enter(p->p_lock);
707 mutex_enter(p->p_lock);
724 error = cv_timedwait(&p->p_lwpcv, p->p_lock, 1);
743 if ((error = cv_wait_sig(&p->p_lwpcv, p->p_lock)) != 0)
790 mutex_enter(p2->p_lock);
802 mutex_exit(p2->p_lock);
822 mutex_exit(p2->p_lock);
925 mutex_enter(p2->p_lock);
935 * These flags are set while p_lock is held. Copy with
936 * p_lock held too, so the LWP doesn't sneak into the
975 mutex_exit(p2->p_lock);
1002 mutex_enter(p->p_lock);
1019 mutex_exit(p->p_lock);
1108 mutex_enter(p->p_lock);
1122 * N.B. this will unlock p->p_lock on our behalf.
1154 mutex_enter(p->p_lock);
1156 mutex_exit(p->p_lock);
1178 * p_lock, because if the lock is dropped any of them can change.
1180 mutex_enter(p->p_lock);
1189 mutex_enter(p->p_lock);
1225 mutex_exit(p->p_lock);
1258 KASSERT(last || mutex_owned(p->p_lock));
1285 * to do this with both the LWP locked and p_lock held.
1315 mutex_exit(p->p_lock);
1459 mutex_enter(p->p_lock);
1468 mutex_enter(p->p_lock);
1483 KASSERT(mutex_owned(p->p_lock));
1507 mutex_exit(p->p_lock);
1515 * Must be called with p->p_lock held (as it looks at the radix tree,
1523 KASSERT(mutex_owned(p->p_lock));
1714 mutex_enter(p->p_lock);
1719 mutex_exit(p->p_lock);
1729 mutex_enter(p->p_lock);
1732 mutex_exit(p->p_lock);
1749 mutex_enter(p->p_lock);
1754 mutex_exit(p->p_lock);
1822 KASSERT(mutex_owned(l->l_proc->p_lock));
1836 mutex_enter(p->p_lock);
1838 mutex_exit(p->p_lock);
1851 KASSERT(mutex_owned(p->p_lock));
1869 KASSERT(mutex_owned(p->p_lock));
1875 cv_wait(&p->p_lwpcv, p->p_lock);
1881 * Return true if the specified LWP is 'alive'. Only p->p_lock need
1888 KASSERT(mutex_owned(l->l_proc->p_lock));
1910 KASSERT(mutex_owned(p->p_lock));
1954 mutex_enter(p->p_lock);
1957 mutex_exit(p->p_lock);
1959 mutex_exit(p->p_lock);
2173 * N.B. l->l_proc->p_lock must be HELD on entry but will
2180 KASSERT(mutex_owned(l->l_proc->p_lock));
2181 mutex_exit(l->l_proc->p_lock);