Lines Matching refs:owner

17  * information: Portions Copyright [yyyy] [name of copyright owner]
43 * [ Either drop the lock (change owner to NULL) or perform a direct
44 * [ handoff (change owner to one of the threads we're about to wake).
57 * (2) Once the lock is marked as having waiters, the owner may be
112 * turnstile_wakeup() waives any priority the owner may have inherited
115 * the new owner automatically inherits priority from any existing waiters.
306 * When we apply priority inheritance, we must grab the owner's thread lock
311 * obvious solution -- do a lock_try() for the owner lock -- isn't quite
323 * Complicating matters further, note that the owner's thread lock pointer
356 * the owner's lock to ensure that we won't retry
367 * so spin until the owner's lock either becomes
409 kthread_t *owner;
491 (owner = SOBJ_OWNER(t->t_sobj_ops, t->t_wchan)) != NULL) {
492 if (owner == curthread) {
526 if (!turnstile_interlock(t->t_lockp, &owner->t_lockp)) {
528 * If we failed to grab the owner's thread lock,
559 * We now have the owner's thread lock. If we are traversing
569 owner->t_sobj_ops != NULL &&
570 SOBJ_TYPE(owner->t_sobj_ops) == SOBJ_USER_PI) {
576 if (t->t_lockp != owner->t_lockp)
577 thread_unlock_high(owner);
582 while (mutex_owner(upi_lock) == owner) {
594 turnstile_pi_inherit(t->t_ts, owner, DISP_PRIO(t));
595 if (t->t_lockp != owner->t_lockp)
597 t = owner;
718 turnstile_wakeup(turnstile_t *ts, int qnum, int nthreads, kthread_t *owner)
740 * make the new owner inherit from this turnstile.
742 if (t == owner) {
748 owner = NULL;
752 if (owner != NULL)
753 panic("turnstile_wakeup: owner %p not woken", (void *)owner);
790 * 2. When the owner of an sobj releases it, but no turnstile is found (i.e.
791 * no waiters), the (prior) owner must call turnstile_pi_recalc() to
801 * on waiter interruption, the owner is required to follow rule 2 above.
804 * the owner runs at an unnecessarily high priority only while sobj is held,