eal: add function to query device status
[dpdk.git] / lib / librte_eal / common / include / rte_dev.h
index efdd4a2..15a514b 100644 (file)
@@ -162,6 +162,20 @@ struct rte_device {
        struct rte_devargs *devargs;  /**< Device user arguments */
 };
 
+/**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
+ * Query status of a device.
+ *
+ * @param dev
+ *   Generic device pointer.
+ * @return
+ *   (int)true if already probed successfully, 0 otherwise.
+ */
+__rte_experimental
+int rte_dev_is_probed(const struct rte_device *dev);
+
 /**
  * Attach a device to a registered driver.
  *