Lines Matching refs:p_lock

59  * care.  p_lock must be held on entry; it may be dropped and reaquired,
60 * but timer_lock() will always return with p_lock held.
68 ASSERT(MUTEX_HELD(&p->p_lock));
72 cv_wait(&it->it_cv, &p->p_lock);
81 * waiters. p_lock must be held on entry; it will not be dropped by
87 ASSERT(MUTEX_HELD(&p->p_lock));
95 * timer, and deletes the specified timer. It must be called with p_lock
103 * This function will always return with p_lock held.
108 ASSERT(MUTEX_HELD(&p->p_lock));
122 cv_wait(&it->it_cv, &p->p_lock);
136 mutex_exit(&p->p_lock);
159 mutex_enter(&p->p_lock);
180 * (a) share error handling code and (b) not grab p_lock themselves. Routines
181 * which are called with p_lock held (e.g. timer_lwpbind(), timer_lwpexit())
185 * locked interval timer. p_lock must _not_ be held on entry; timer_grab()
186 * may acquire p_lock, but will always return with p_lock dropped.
207 mutex_enter(&p->p_lock);
210 mutex_exit(&p->p_lock);
221 mutex_exit(&p->p_lock);
225 mutex_exit(&p->p_lock);
231 * timer_release() releases a timer acquired with timer_grab(). p_lock
232 * should not be held on entry; timer_release() will acquire p_lock but
238 mutex_enter(&p->p_lock);
240 mutex_exit(&p->p_lock);
245 * p_lock should not be held on entry; timer_delete_grabbed() will acquire
246 * p_lock, but will drop it before returning.
251 mutex_enter(&p->p_lock);
253 mutex_exit(&p->p_lock);
396 * call siginfofree() without p_lock held. To prevent a race
419 * sufficient to only grab p_lock here. Because p_lock can be
421 * necessarily p_lock before it_mutex.
426 mutex_enter(&p->p_lock);
435 * We don't need to use the p_lock because it is only
466 mutex_exit(&p->p_lock);
550 * We'll allocate our timer and sigqueue now, before we grab p_lock.
558 mutex_enter(&p->p_lock);
562 * an array of timerstr_t pointers. We drop p_lock to perform the
567 mutex_exit(&p->p_lock);
569 mutex_enter(&p->p_lock);
584 * We couldn't find a slot. Drop p_lock, free the preallocated
587 mutex_exit(&p->p_lock);
649 mutex_exit(&p->p_lock);
662 mutex_exit(&p->p_lock);
678 mutex_exit(&p->p_lock);
706 * process. We need to regrab p_lock, and delete the incipient timer.
817 * The it_overrun field is protected by p_lock; we need to acquire
820 mutex_enter(&p->p_lock);
822 mutex_exit(&p->p_lock);
830 * Entered/exited with p_lock held, but will repeatedly drop and regrab p_lock.
840 ASSERT(MUTEX_HELD(&p->p_lock));
873 * Called to notify of an LWP binding change. Entered/exited with p_lock
874 * held, but will repeatedly drop and regrab p_lock.
884 ASSERT(MUTEX_HELD(&p->p_lock));
897 * Drop p_lock and jump into the backend.
899 mutex_exit(&p->p_lock);
901 mutex_enter(&p->p_lock);