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

Function umtxq_count

freebsd/kern/kern_umtx.c:666–676  ·  view source on GitHub ↗

* Check if there are multiple waiters */

Source from the content-addressed store, hash-verified

664 * Check if there are multiple waiters
665 */
666static int
667umtxq_count(struct umtx_key *key)
668{
669 struct umtxq_queue *uh;
670
671 UMTXQ_LOCKED_ASSERT(umtxq_getchain(key));
672 uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE);
673 if (uh != NULL)
674 return (uh->length);
675 return (0);
676}
677
678/*
679 * Check if there are multiple PI waiters and returns first

Callers 6

do_unlock_normalFunction · 0.85
do_wake_umutexFunction · 0.85
do_wake2_umutexFunction · 0.85
do_cv_signalFunction · 0.85
do_sem_wakeFunction · 0.85
do_sem2_wakeFunction · 0.85

Calls 2

umtxq_getchainFunction · 0.85
umtxq_queue_lookupFunction · 0.85

Tested by

no test coverage detected