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

Function regexdev_find_free_dev

dpdk/lib/regexdev/rte_regexdev.c:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22RTE_LOG_REGISTER_DEFAULT(rte_regexdev_logtype, INFO);
23
24static uint16_t
25regexdev_find_free_dev(void)
26{
27 uint16_t i;
28
29 for (i = 0; i < RTE_MAX_REGEXDEV_DEVS; i++) {
30 if (rte_regex_devices[i].state == RTE_REGEXDEV_UNUSED)
31 return i;
32 }
33 return RTE_MAX_REGEXDEV_DEVS;
34}
35
36static struct rte_regexdev*
37regexdev_allocated(const char *name)

Callers 1

rte_regexdev_registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected