| 581 | } |
| 582 | |
| 583 | static struct umtxq_queue * |
| 584 | umtxq_queue_lookup(struct umtx_key *key, int q) |
| 585 | { |
| 586 | struct umtxq_queue *uh; |
| 587 | struct umtxq_chain *uc; |
| 588 | |
| 589 | uc = umtxq_getchain(key); |
| 590 | UMTXQ_LOCKED_ASSERT(uc); |
| 591 | LIST_FOREACH(uh, &uc->uc_queue[q], link) { |
| 592 | if (umtx_key_match(&uh->key, key)) |
| 593 | return (uh); |
| 594 | } |
| 595 | |
| 596 | return (NULL); |
| 597 | } |
| 598 | |
| 599 | static inline void |
| 600 | umtxq_insert_queue(struct umtx_q *uq, int q) |
no test coverage detected