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

Function cmd_operate_detach_device_parsed

dpdk/app/test-pmd/cmdline.c:1312–1322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310};
1311
1312static void cmd_operate_detach_device_parsed(void *parsed_result,
1313 __rte_unused struct cmdline *cl,
1314 __rte_unused void *data)
1315{
1316 struct cmd_operate_detach_device_result *res = parsed_result;
1317
1318 if (!strcmp(res->keyword, "detach"))
1319 detach_devargs(res->identifier);
1320 else
1321 fprintf(stderr, "Unknown parameter\n");
1322}
1323
1324static cmdline_parse_token_string_t cmd_operate_detach_device_device =
1325 TOKEN_STRING_INITIALIZER(struct cmd_operate_detach_device_result,

Callers

nothing calls this directly

Calls 2

strcmpFunction · 0.85
detach_devargsFunction · 0.85

Tested by

no test coverage detected