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

Function lsi_parse_nqueue

dpdk/examples/link_status_interrupt/main.c:325–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static unsigned int
326lsi_parse_nqueue(const char *q_arg)
327{
328 char *end = NULL;
329 unsigned long n;
330
331 /* parse hexadecimal string */
332 n = strtoul(q_arg, &end, 10);
333 if ((q_arg[0] == '\0') || (end == NULL) || (*end != '\0'))
334 return 0;
335 if (n == 0)
336 return 0;
337 if (n >= MAX_RX_QUEUE_PER_LCORE)
338 return 0;
339
340 return n;
341}
342
343static int
344lsi_parse_timer_period(const char *q_arg)

Callers 1

lsi_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected