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

Function rte_dma_is_valid

dpdk/lib/dmadev/rte_dmadev.c:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401bool
402rte_dma_is_valid(int16_t dev_id)
403{
404 return (dev_id >= 0) && (dev_id < dma_devices_max) &&
405 rte_dma_devices != NULL &&
406 rte_dma_devices[dev_id].state != RTE_DMA_DEV_UNUSED;
407}
408
409uint16_t
410rte_dma_count_avail(void)

Callers 15

rte_dma_info_getFunction · 0.85
rte_dma_configureFunction · 0.85
rte_dma_startFunction · 0.85
rte_dma_stopFunction · 0.85
rte_dma_closeFunction · 0.85
rte_dma_vchan_setupFunction · 0.85
rte_dma_stats_getFunction · 0.85
rte_dma_stats_resetFunction · 0.85
rte_dma_vchan_statusFunction · 0.85
rte_dma_dumpFunction · 0.85
dmadev_handle_dev_listFunction · 0.85
rte_dma_copyFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_dma_is_valid_devFunction · 0.68