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

Function find_free_dev_id

dpdk/lib/bbdev/rte_bbdev.c:162–171  ·  view source on GitHub ↗

Find lowest device id with no attached device */

Source from the content-addressed store, hash-verified

160
161/* Find lowest device id with no attached device */
162static uint16_t
163find_free_dev_id(void)
164{
165 uint16_t i;
166 for (i = 0; i < RTE_BBDEV_MAX_DEVS; i++) {
167 if (rte_bbdev_devices[i].state == RTE_BBDEV_UNUSED)
168 return i;
169 }
170 return RTE_BBDEV_MAX_DEVS;
171}
172
173struct rte_bbdev *
174rte_bbdev_allocate(const char *name)

Callers 1

rte_bbdev_allocateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected