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

Function parse_eventdev_id

dpdk/app/proc-info/main.c:265–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static int
266parse_eventdev_id(const char *str)
267{
268 unsigned long evdev_id;
269 char *endp;
270
271 evdev_id = strtoul(str, &endp, 0);
272
273 if (*str == '\0' || *endp != '\0' || evdev_id >= rte_event_dev_count()) {
274 fprintf(stderr, "Invalid eventdev id: %s\n", str);
275 return -1;
276 }
277
278 return evdev_id;
279}
280
281static int
282parse_eventdev_dump_xstats_params(const char *list)

Calls 2

strtoulFunction · 0.85
rte_event_dev_countFunction · 0.85

Tested by

no test coverage detected