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

Function if_alloc_dev

freebsd/net/if.c:655–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655struct ifnet *
656if_alloc_dev(u_char type, device_t dev)
657{
658 int numa_domain;
659
660 if (dev == NULL || bus_get_domain(dev, &numa_domain) != 0)
661 return (if_alloc_domain(type, IF_NODOM));
662 return (if_alloc_domain(type, numa_domain));
663}
664
665struct ifnet *
666if_alloc(u_char type)

Callers

nothing calls this directly

Calls 2

if_alloc_domainFunction · 0.85
bus_get_domainFunction · 0.50

Tested by

no test coverage detected