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

Function iflib_free_intr_mem

freebsd/net/iflib.c:5285–5300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5283}
5284
5285static void
5286iflib_free_intr_mem(if_ctx_t ctx)
5287{
5288
5289 if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_MSIX) {
5290 iflib_irq_free(ctx, &ctx->ifc_legacy_irq);
5291 }
5292 if (ctx->ifc_softc_ctx.isc_intr != IFLIB_INTR_LEGACY) {
5293 pci_release_msi(ctx->ifc_dev);
5294 }
5295 if (ctx->ifc_msix_mem != NULL) {
5296 bus_release_resource(ctx->ifc_dev, SYS_RES_MEMORY,
5297 rman_get_rid(ctx->ifc_msix_mem), ctx->ifc_msix_mem);
5298 ctx->ifc_msix_mem = NULL;
5299 }
5300}
5301
5302int
5303iflib_device_detach(device_t dev)

Callers 2

iflib_device_registerFunction · 0.85
iflib_device_deregisterFunction · 0.85

Calls 3

iflib_irq_freeFunction · 0.85
bus_release_resourceFunction · 0.85
rman_get_ridFunction · 0.85

Tested by

no test coverage detected