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

Function iflib_deregister

freebsd/net/iflib.c:5559–5580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5557}
5558
5559static void
5560iflib_deregister(if_ctx_t ctx)
5561{
5562 if_t ifp = ctx->ifc_ifp;
5563
5564 /* Remove all media */
5565 ifmedia_removeall(&ctx->ifc_media);
5566
5567 /* Ensure that VLAN event handlers are unregistered */
5568 iflib_unregister_vlan_handlers(ctx);
5569
5570 /* Release kobject reference */
5571 kobj_delete((kobj_t) ctx, NULL);
5572
5573 /* Free the ifnet structure */
5574 if_free(ifp);
5575
5576 STATE_LOCK_DESTROY(ctx);
5577
5578 /* ether_ifdetach calls if_qflush - lock must be destroy afterwards*/
5579 CTX_LOCK_DESTROY(ctx);
5580}
5581
5582static int
5583iflib_queues_alloc(if_ctx_t ctx)

Callers 4

iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85
iflib_pseudo_deregisterFunction · 0.85
iflib_device_deregisterFunction · 0.85

Calls 4

ifmedia_removeallFunction · 0.85
kobj_deleteFunction · 0.85
if_freeFunction · 0.85

Tested by

no test coverage detected