diff mbox

[API-NEXT,3/5] api: init: driver load function added

Message ID 1477940323-7278-4-git-send-email-christophe.milard@linaro.org
State Superseded
Headers show

Commit Message

Christophe Milard Oct. 31, 2016, 6:58 p.m. UTC
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>


Function added on the north API to load drivers.
---
 include/odp/api/spec/init.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

-- 
2.7.4
diff mbox

Patch

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.
+ * Calls to this function are optional, but should be performed (if any)
+ * after odp_init_global
+ *
+ *
+ * @param filename        Driver shared lib (dynamic library)
+ *
+ * @retval 0 on success
+ * @retval <0 on failure
+ *
+ */
+int odp_load_driver(const char *filename);
+
+/**
  * @}
  */