]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_dev.h
ethdev: use device handle to detach
[dpdk.git] / lib / librte_eal / common / include / rte_dev.h
index a0d67d00327f62bfada40fc0f6f051c531e9612a..9f2765d514caa65545cf3a612c7ef0798a4b9745 100644 (file)
@@ -183,13 +183,12 @@ int rte_eal_dev_attach(const char *name, const char *devargs);
 /**
  * Detach a device from its driver.
  *
- * @param name
- *   Same description as for rte_eal_dev_attach().
- *   Here, eal will call the driver detaching function.
+ * @param dev
+ *   A pointer to a rte_device structure.
  * @return
  *   0 on success, negative on error.
  */
-int rte_eal_dev_detach(const char *name);
+int rte_eal_dev_detach(struct rte_device *dev);
 
 /**
  * @warning