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

Function uipc_disconnect

freebsd/kern/uipc_usrreq.c:867–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867static int
868uipc_disconnect(struct socket *so)
869{
870 struct unpcb *unp, *unp2;
871
872 unp = sotounpcb(so);
873 KASSERT(unp != NULL, ("uipc_disconnect: unp == NULL"));
874
875 UNP_PCB_LOCK(unp);
876 if ((unp2 = unp_pcb_lock_peer(unp)) != NULL)
877 unp_disconnect(unp, unp2);
878 else
879 UNP_PCB_UNLOCK(unp);
880 return (0);
881}
882
883static int
884uipc_listen(struct socket *so, int backlog, struct thread *td)

Callers

nothing calls this directly

Calls 2

unp_pcb_lock_peerFunction · 0.85
unp_disconnectFunction · 0.85

Tested by

no test coverage detected