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

Function ifc_alloc_unit

freebsd/net/if_clone.c:651–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651int
652ifc_alloc_unit(struct if_clone *ifc, int *unit)
653{
654 if (*unit < 0)
655 return (ifc_alloc_unit_next(ifc, unit));
656 else
657 return (ifc_alloc_unit_specific(ifc, unit));
658}
659
660void
661ifc_free_unit(struct if_clone *ifc, int unit)

Callers 4

stf_clone_createFunction · 0.85
ifc_simple_createFunction · 0.85
epair_clone_createFunction · 0.85
vlan_clone_createFunction · 0.85

Calls 2

ifc_alloc_unit_nextFunction · 0.85
ifc_alloc_unit_specificFunction · 0.85

Tested by

no test coverage detected