bus: add helper to find bus by name
[dpdk.git] / lib / librte_eal / common / include / rte_bus.h
index f8b3215..509292d 100644 (file)
@@ -214,6 +214,11 @@ struct rte_bus *rte_bus_find(const struct rte_bus *start, rte_bus_cmp_t cmp,
  */
 struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev);
 
+/**
+ * Find the registered bus for a given name.
+ */
+struct rte_bus *rte_bus_find_by_name(const char *busname);
+
 /**
  * Helper for Bus registration.
  * The constructor has higher priority than PMD constructors.