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

Function dma_parse_portmask

dpdk/examples/dma/dmafwd.c:606–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606static int
607dma_parse_portmask(const char *portmask)
608{
609 char *end = NULL;
610 unsigned long pm;
611
612 /* Parse hexadecimal string */
613 pm = strtoul(portmask, &end, 16);
614 if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))
615 return 0;
616
617 return pm;
618}
619
620static copy_mode_t
621dma_parse_copy_mode(const char *copy_mode)

Callers 1

dma_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected