MCPcopy Create free account
hub / github.com/F-Stack/f-stack / umtxq_queue_lookup

Function umtxq_queue_lookup

freebsd/kern/kern_umtx.c:583–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583static struct umtxq_queue *
584umtxq_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
599static inline void
600umtxq_insert_queue(struct umtx_q *uq, int q)

Callers 4

umtxq_insert_queueFunction · 0.85
umtxq_countFunction · 0.85
umtxq_count_piFunction · 0.85
umtxq_signal_queueFunction · 0.85

Calls 2

umtxq_getchainFunction · 0.85
umtx_key_matchFunction · 0.85

Tested by

no test coverage detected