]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_bus.h
bus: add helper to find bus by name
[dpdk.git] / lib / librte_eal / common / include / rte_bus.h
index f8b321559ec466e4a96889ab051919e86eb97aab..509292d1342eaeacabfa04d0bd7bfe3689aeed9c 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.