diff mbox

[PATCHv3,1/2] api: queue: add odp_queue_sched_prio and odp_queue_sched_group

Message ID 1418909718-6413-2-git-send-email-ciprian.barbu@linaro.org
State Accepted
Commit 682d238ec025dfb5a888846827f7fa7cf6fbfc06
Headers show

Commit Message

Ciprian Barbu Dec. 18, 2014, 1:35 p.m. UTC
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
---
 platform/linux-generic/include/api/odp_queue.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h
index b8ac4bb..ef84d6f 100644
--- a/platform/linux-generic/include/api/odp_queue.h
+++ b/platform/linux-generic/include/api/odp_queue.h
@@ -222,6 +222,28 @@  odp_queue_type_t odp_queue_type(odp_queue_t queue);
 odp_schedule_sync_t odp_queue_sched_type(odp_queue_t queue);
 
 /**
+ * Queue priority
+ *
+ * @note Passing an invalid queue_handle will result in UNDEFINED behavior
+ *
+ * @param queue   Queue handle
+ *
+ * @return Queue schedule priority
+ */
+odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue);
+
+/**
+ * Queue group
+ *
+ * @note Passing an invalid queue_handle will result in UNDEFINED behavior
+ *
+ * @param queue   Queue handle
+ *
+ * @return Queue schedule group
+ */
+odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue);
+
+/**
  * @}
  */