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

Function if_clone_detach

freebsd/net/if_clone.c:443–461  ·  view source on GitHub ↗

* Unregister a network interface cloner. */

Source from the content-addressed store, hash-verified

441 * Unregister a network interface cloner.
442 */
443void
444if_clone_detach(struct if_clone *ifc)
445{
446
447 IF_CLONERS_LOCK();
448 LIST_REMOVE(ifc, ifc_list);
449 V_if_cloners_count--;
450 IF_CLONERS_UNLOCK();
451
452 /* Allow all simples to be destroyed */
453 if (ifc->ifc_type == SIMPLE)
454 ifc->ifcs_minifs = 0;
455
456 /* destroy all interfaces for this cloner */
457 while (!LIST_EMPTY(&ifc->ifc_iflist))
458 if_clone_destroyif(ifc, LIST_FIRST(&ifc->ifc_iflist));
459
460 IF_CLONE_REMREF(ifc);
461}
462
463static void
464if_clone_free(struct if_clone *ifc)

Callers 15

vnet_pflog_uninitFunction · 0.85
vnet_pfsync_initFunction · 0.85
vnet_pfsync_uninitFunction · 0.85
ipfw_bpf_uninitFunction · 0.85
wlan_modeventFunction · 0.85
stfmodeventFunction · 0.85
iflib_clone_registerFunction · 0.85
iflib_clone_deregisterFunction · 0.85
vxlan_unloadFunction · 0.85
vnet_epair_uninitFunction · 0.85
vnet_gre_uninitFunction · 0.85
vnet_lagg_uninitFunction · 0.85

Calls 1

if_clone_destroyifFunction · 0.85

Tested by

no test coverage detected