devargs: introduce insert function
[dpdk.git] / lib / librte_eal / common / include / rte_devargs.h
index 36453b6..7b63fa3 100644 (file)
@@ -138,6 +138,19 @@ int
 rte_eal_devargs_parse(const char *dev,
                      struct rte_devargs *da);
 
+/**
+ * Insert an rte_devargs in the global list.
+ *
+ * @param da
+ *  The devargs structure to insert.
+ *
+ * @return
+ *   - 0 on success
+ *   - Negative on error.
+ */
+int
+rte_eal_devargs_insert(struct rte_devargs *da);
+
 /**
  * Add a device to the user device list
  *