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

Function ifmedia_removeall

freebsd/net/if_media.c:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void
101ifmedia_removeall(struct ifmedia *ifm)
102{
103 struct ifmedia_entry *entry;
104
105 while ((entry = LIST_FIRST(&ifm->ifm_list)) != NULL) {
106 LIST_REMOVE(entry, ifm_list);
107 free(entry, M_IFADDR);
108 }
109 ifm->ifm_cur = NULL;
110}
111
112/*
113 * Add a media configuration to the list of supported media

Callers 6

ieee80211_vap_detachFunction · 0.85
iflib_deregisterFunction · 0.85
vxlan_clone_destroyFunction · 0.85
epair_clone_destroyFunction · 0.85
lagg_clone_destroyFunction · 0.85
ng_eiface_rmnodeFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected