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

Function regexdev_allocated

dpdk/lib/regexdev/rte_regexdev.c:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static struct rte_regexdev*
37regexdev_allocated(const char *name)
38{
39 uint16_t i;
40
41 for (i = 0; i < RTE_MAX_REGEXDEV_DEVS; i++) {
42 if (rte_regex_devices[i].state != RTE_REGEXDEV_UNUSED)
43 if (!strcmp(name, rte_regex_devices[i].data->dev_name))
44 return &rte_regex_devices[i];
45 }
46 return NULL;
47}
48
49static int
50regexdev_shared_data_prepare(void)

Callers 2

rte_regexdev_registerFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected