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

Function cmd_showdevice_parsed

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

Source from the content-addressed store, hash-verified

7058};
7059
7060static void cmd_showdevice_parsed(void *parsed_result,
7061 __rte_unused struct cmdline *cl,
7062 __rte_unused void *data)
7063{
7064 struct cmd_showdevice_result *res = parsed_result;
7065 if (!strcmp(res->what, "info")) {
7066 if (!strcmp(res->identifier, "all"))
7067 device_infos_display(NULL);
7068 else
7069 device_infos_display(res->identifier);
7070 }
7071}
7072
7073static cmdline_parse_token_string_t cmd_showdevice_show =
7074 TOKEN_STRING_INITIALIZER(struct cmd_showdevice_result, show,

Callers

nothing calls this directly

Calls 2

strcmpFunction · 0.85
device_infos_displayFunction · 0.85

Tested by

no test coverage detected