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

Function iflib_device_attach

freebsd/net/iflib.c:5183–5195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5181}
5182
5183int
5184iflib_device_attach(device_t dev)
5185{
5186 if_ctx_t ctx;
5187 if_shared_ctx_t sctx;
5188
5189 if ((sctx = DEVICE_REGISTER(dev)) == NULL || sctx->isc_magic != IFLIB_MAGIC)
5190 return (ENOTSUP);
5191
5192 pci_enable_busmaster(dev);
5193
5194 return (iflib_device_register(dev, NULL, sctx, &ctx));
5195}
5196
5197int
5198iflib_device_deregister(if_ctx_t ctx)

Callers

nothing calls this directly

Calls 1

iflib_device_registerFunction · 0.85

Tested by

no test coverage detected