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

Function div_detach

freebsd/netinet/ip_divert.c:591–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591static void
592div_detach(struct socket *so)
593{
594 struct inpcb *inp;
595
596 inp = sotoinpcb(so);
597 KASSERT(inp != NULL, ("div_detach: inp == NULL"));
598 INP_INFO_WLOCK(&V_divcbinfo);
599 INP_WLOCK(inp);
600 in_pcbdetach(inp);
601 in_pcbfree(inp);
602 INP_INFO_WUNLOCK(&V_divcbinfo);
603}
604
605static int
606div_bind(struct socket *so, struct sockaddr *nam, struct thread *td)

Callers

nothing calls this directly

Calls 2

in_pcbdetachFunction · 0.85
in_pcbfreeFunction · 0.85

Tested by

no test coverage detected