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

Function parse_descriptor_param

dpdk/app/proc-info/main.c:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static int
253parse_descriptor_param(char *list, struct desc_param *desc)
254{
255 int ret;
256
257 ret = sscanf(list, "%hu:%hu:%hu", &desc->queue_id, &desc->offset,
258 &desc->num);
259 if (ret != DESC_PARAM_NUM)
260 return -EINVAL;
261
262 return 0;
263}
264
265static int
266parse_eventdev_id(const char *str)

Callers 1

proc_info_parse_argsFunction · 0.85

Calls 1

sscanfFunction · 0.85

Tested by

no test coverage detected