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

Function handle_dev_list

dpdk/lib/eventdev/rte_eventdev.c:1704–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1702}
1703
1704static int
1705handle_dev_list(const char *cmd __rte_unused,
1706 const char *params __rte_unused,
1707 struct rte_tel_data *d)
1708{
1709 uint8_t dev_id;
1710 int ndev = rte_event_dev_count();
1711
1712 if (ndev < 1)
1713 return -1;
1714
1715 rte_tel_data_start_array(d, RTE_TEL_INT_VAL);
1716 for (dev_id = 0; dev_id < RTE_EVENT_MAX_DEVS; dev_id++) {
1717 if (rte_eventdevs[dev_id].attached ==
1718 RTE_EVENTDEV_ATTACHED)
1719 rte_tel_data_add_array_int(d, dev_id);
1720 }
1721
1722 return 0;
1723}
1724
1725static int
1726handle_port_list(const char *cmd __rte_unused,

Callers

nothing calls this directly

Calls 3

rte_event_dev_countFunction · 0.85
rte_tel_data_start_arrayFunction · 0.85

Tested by

no test coverage detected