aboutsummaryrefslogtreecommitdiff
path: root/helper/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2018-10-12 10:43:34 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-11-28 17:16:39 +0300
commit1065c7735a98611308f7430839a62e8a1fab40da (patch)
tree5c450dc44cae97eb76706ba0facda5de4d96524d /helper/include
parent5d002e728f60be318f235cc610b4f1dd631a34ba (diff)
helper: threads: add odph_options() getter function
Add function for reading parsed linux helper options. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/include')
-rw-r--r--helper/include/odp/helper/threads.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/helper/include/odp/helper/threads.h b/helper/include/odp/helper/threads.h
index f4e8a785e..6cee2522d 100644
--- a/helper/include/odp/helper/threads.h
+++ b/helper/include/odp/helper/threads.h
@@ -88,6 +88,11 @@ typedef struct {
};
} odph_odpthread_t;
+/** Linux helper options */
+typedef struct {
+ odp_mem_model_t mem_model; /**< Process or thread */
+} odph_helper_options_t;
+
/**
* Creates and launches odpthreads (as linux threads or processes)
*
@@ -154,6 +159,18 @@ int odph_odpthread_getaffinity(void);
int odph_parse_options(int argc, char *argv[]);
/**
+ * Get linux helper options
+ *
+ * Return used ODP helper options. odph_parse_options() must be called before
+ * using this function.
+ *
+ * @param[out] options ODP helper options
+ *
+ * @return 0 on success, -1 on failure
+ */
+int odph_options(odph_helper_options_t *options);
+
+/**
* @}
*/