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

Function unp_dispose

freebsd/kern/uipc_usrreq.c:2790–2801  ·  view source on GitHub ↗

* Synchronize against unp_gc, which can trip over data as we are freeing it. */

Source from the content-addressed store, hash-verified

2788 * Synchronize against unp_gc, which can trip over data as we are freeing it.
2789 */
2790static void
2791unp_dispose(struct socket *so)
2792{
2793 struct unpcb *unp;
2794
2795 unp = sotounpcb(so);
2796 UNP_LINK_WLOCK();
2797 unp->unp_gcflag |= UNPGC_IGNORE_RIGHTS;
2798 UNP_LINK_WUNLOCK();
2799 if (!SOLISTENING(so))
2800 unp_dispose_mbuf(so->so_rcv.sb_mb);
2801}
2802
2803static void
2804unp_scan(struct mbuf *m0, void (*op)(struct filedescent **, int))

Callers

nothing calls this directly

Calls 1

unp_dispose_mbufFunction · 0.85

Tested by

no test coverage detected