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

Function unp_pcb_lock_pair

freebsd/kern/uipc_usrreq.c:347–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347static void
348unp_pcb_lock_pair(struct unpcb *unp, struct unpcb *unp2)
349{
350 UNP_PCB_UNLOCK_ASSERT(unp);
351 UNP_PCB_UNLOCK_ASSERT(unp2);
352
353 if (unp == unp2) {
354 UNP_PCB_LOCK(unp);
355 } else if ((uintptr_t)unp2 > (uintptr_t)unp) {
356 UNP_PCB_LOCK(unp);
357 UNP_PCB_LOCK(unp2);
358 } else {
359 UNP_PCB_LOCK(unp2);
360 UNP_PCB_LOCK(unp);
361 }
362}
363
364static void
365unp_pcb_unlock_pair(struct unpcb *unp, struct unpcb *unp2)

Callers 2

uipc_connect2Function · 0.85
unp_connectatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected