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

Function umtx_pi_insert

freebsd/kern/kern_umtx.c:1780–1788  ·  view source on GitHub ↗

* Insert a PI mutex into hash table. */

Source from the content-addressed store, hash-verified

1778 * Insert a PI mutex into hash table.
1779 */
1780static inline void
1781umtx_pi_insert(struct umtx_pi *pi)
1782{
1783 struct umtxq_chain *uc;
1784
1785 uc = umtxq_getchain(&pi->pi_key);
1786 UMTXQ_LOCKED_ASSERT(uc);
1787 TAILQ_INSERT_TAIL(&uc->uc_pi_list, pi, pi_hashlink);
1788}
1789
1790/*
1791 * Lock a PI mutex.

Callers 1

do_lock_piFunction · 0.85

Calls 1

umtxq_getchainFunction · 0.85

Tested by

no test coverage detected