On 11/07/16 14:15, Christophe Milard wrote:
Function added on the north API to load drivers.

Signed-off-by: Christophe Milard <christophe.mil...@linaro.org>
---
  include/odp/api/spec/init.h | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

diff --git a/include/odp/api/spec/init.h b/include/odp/api/spec/init.h
index 154cdf8..bfe43df 100644
--- a/include/odp/api/spec/init.h
+++ b/include/odp/api/spec/init.h
@@ -270,6 +270,22 @@ int odp_init_local(odp_instance_t instance, 
odp_thread_type_t thr_type);
  int odp_term_local(void);
/**
+ * Driver loading
+ *
+ * This function is used by the application to load NIC drivers into ODP.

s/NIC divers/ODP drivers/

+ * Calls to this function are optional, but should be performed (if any)
+ * after odp_init_global
+ *
+ *
+ * @param filename        Driver shared lib (dynamic library)

it it full file name or just name of the library?


+ *
+ * @retval 0 on success
+ * @retval <0 on failure
+ *
+ */
+int odp_load_driver(const char *filename);

odp_driver_load() or even odp_drv_load().

I think it's better to keep common prefix for drivers.

Maxim.

+
+/**
   * @}
   */

Reply via email to