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

Function umtx_pi_ref

freebsd/kern/kern_umtx.c:1725–1731  ·  view source on GitHub ↗

* Add reference count for a PI mutex. */

Source from the content-addressed store, hash-verified

1723 * Add reference count for a PI mutex.
1724 */
1725static void
1726umtx_pi_ref(struct umtx_pi *pi)
1727{
1728
1729 UMTXQ_LOCKED_ASSERT(umtxq_getchain(&pi->pi_key));
1730 pi->pi_refcount++;
1731}
1732
1733/*
1734 * Decrease reference count for a PI mutex, if the counter

Callers 1

do_lock_piFunction · 0.85

Calls 1

umtxq_getchainFunction · 0.85

Tested by

no test coverage detected