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

Function me_clone_destroy

freebsd/net/if_me.c:231–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229#endif /* VIMAGE */
230
231static void
232me_clone_destroy(struct ifnet *ifp)
233{
234 struct me_softc *sc;
235
236 sx_xlock(&me_ioctl_sx);
237 sc = ifp->if_softc;
238 me_delete_tunnel(sc);
239 bpfdetach(ifp);
240 if_detach(ifp);
241 ifp->if_softc = NULL;
242 sx_xunlock(&me_ioctl_sx);
243
244 ME_WAIT();
245 if_free(ifp);
246 free(sc, M_IFME);
247}
248
249static int
250me_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)

Callers

nothing calls this directly

Calls 5

me_delete_tunnelFunction · 0.85
bpfdetachFunction · 0.85
if_detachFunction · 0.85
if_freeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected