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

Function dma_parse_copy_mode

dpdk/examples/dma/dmafwd.c:620–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620static copy_mode_t
621dma_parse_copy_mode(const char *copy_mode)
622{
623 if (strcmp(copy_mode, COPY_MODE_SW) == 0)
624 return COPY_MODE_SW_NUM;
625 else if (strcmp(copy_mode, COPY_MODE_DMA) == 0)
626 return COPY_MODE_DMA_NUM;
627
628 return COPY_MODE_INVALID_NUM;
629}
630
631/* Parse the argument given in the command line of the application */
632static int

Callers 1

dma_parse_argsFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected