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

Function iflib_dma_alloc_multi

freebsd/net/iflib.c:1459–1473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459int
1460iflib_dma_alloc_multi(if_ctx_t ctx, int *sizes, iflib_dma_info_t *dmalist, int mapflags, int count)
1461{
1462 int i, err;
1463 iflib_dma_info_t *dmaiter;
1464
1465 dmaiter = dmalist;
1466 for (i = 0; i < count; i++, dmaiter++) {
1467 if ((err = iflib_dma_alloc(ctx, sizes[i], *dmaiter, mapflags)) != 0)
1468 break;
1469 }
1470 if (err)
1471 iflib_dma_free_multi(dmalist, i);
1472 return (err);
1473}
1474
1475void
1476iflib_dma_free(iflib_dma_info_t dma)

Callers

nothing calls this directly

Calls 2

iflib_dma_allocFunction · 0.85
iflib_dma_free_multiFunction · 0.85

Tested by

no test coverage detected