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

Function iflib_clone_deregister

freebsd/net/iflib_clone.c:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void
294iflib_clone_deregister(if_pseudo_t ip)
295{
296 /* XXX check that is not still in use */
297 iflib_ip_delete(ip);
298 EVENTHANDLER_DEREGISTER(ifnet_departure_event, ip->ip_detach_tag);
299 EVENTHANDLER_DEREGISTER(iflladdr_event, ip->ip_lladdr_tag);
300 if_clone_detach(ip->ip_ifc);
301 /* XXX free devclass */
302 free(ip, M_IFLIB);
303}

Callers

nothing calls this directly

Calls 3

iflib_ip_deleteFunction · 0.85
if_clone_detachFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected