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

Function uipc_connect2

freebsd/kern/uipc_usrreq.c:765–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765static int
766uipc_connect2(struct socket *so1, struct socket *so2)
767{
768 struct unpcb *unp, *unp2;
769 int error;
770
771 unp = so1->so_pcb;
772 KASSERT(unp != NULL, ("uipc_connect2: unp == NULL"));
773 unp2 = so2->so_pcb;
774 KASSERT(unp2 != NULL, ("uipc_connect2: unp2 == NULL"));
775 unp_pcb_lock_pair(unp, unp2);
776 error = unp_connect2(so1, so2, PRU_CONNECT2);
777 unp_pcb_unlock_pair(unp, unp2);
778 return (error);
779}
780
781static void
782uipc_detach(struct socket *so)

Callers

nothing calls this directly

Calls 3

unp_pcb_lock_pairFunction · 0.85
unp_connect2Function · 0.85
unp_pcb_unlock_pairFunction · 0.85

Tested by

no test coverage detected