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

Function ifunit

freebsd/net/if.c:2374–2387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2372}
2373
2374struct ifnet *
2375ifunit(const char *name)
2376{
2377 struct epoch_tracker et;
2378 struct ifnet *ifp;
2379
2380 NET_EPOCH_ENTER(et);
2381 CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
2382 if (strncmp(name, ifp->if_xname, IFNAMSIZ) == 0)
2383 break;
2384 }
2385 NET_EPOCH_EXIT(et);
2386 return (ifp);
2387}
2388
2389void *
2390ifr_buffer_get_buffer(void *data)

Callers 15

pf_enable_altqFunction · 0.85
pf_disable_altqFunction · 0.85
pf_altq_ifnet_event_addFunction · 0.85
pfioctlFunction · 0.85
div_outputFunction · 0.85
icmp_reflectFunction · 0.85
if_vmove_loanFunction · 0.85
if_vmove_reclaimFunction · 0.85
ifhwioctlFunction · 0.85
if_clone_createifFunction · 0.85
ifc_alloc_unit_specificFunction · 0.85
debugnet_parse_ddb_cmdFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected