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

Function ifmedia_init

freebsd/net/if_media.c:87–98  ·  view source on GitHub ↗

* Initialize if_media struct for a specific interface instance. */

Source from the content-addressed store, hash-verified

85 * Initialize if_media struct for a specific interface instance.
86 */
87void
88ifmedia_init(struct ifmedia *ifm, int dontcare_mask,
89 ifm_change_cb_t change_callback, ifm_stat_cb_t status_callback)
90{
91
92 LIST_INIT(&ifm->ifm_list);
93 ifm->ifm_cur = NULL;
94 ifm->ifm_media = 0;
95 ifm->ifm_mask = dontcare_mask; /* IF don't-care bits */
96 ifm->ifm_change = change_callback;
97 ifm->ifm_status = status_callback;
98}
99
100void
101ifmedia_removeall(struct ifmedia *ifm)

Callers 11

ieee80211_media_setupFunction · 0.85
arge_attachFunction · 0.85
are_attachFunction · 0.85
octm_attachFunction · 0.85
octe_attachFunction · 0.85
nlm_xlpge_ifinitFunction · 0.85
iflib_registerFunction · 0.85
vxlan_clone_createFunction · 0.85
epair_clone_createFunction · 0.85
lagg_clone_createFunction · 0.85
ng_eiface_constructorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected