Signed-off-by: Ciprian Barbu <[email protected]>
---
platform/linux-generic/odp_queue.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/platform/linux-generic/odp_queue.c
b/platform/linux-generic/odp_queue.c
index a7c5e42..36ca430 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -146,6 +146,30 @@ odp_schedule_sync_t odp_queue_sched_type(odp_queue_t
handle)
return queue->s.param.sched.sync;
}
+odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t handle)
+{
+ queue_entry_t *queue;
+
+ if (handle == ODP_QUEUE_INVALID)
+ ODP_ABORT("Ivalid queue handle\n");
+
+ queue = queue_to_qentry(handle);
+
+ return queue->s.param.sched.prio;
+}
+
+odp_schedule_group_t odp_queue_sched_group(odp_queue_t handle)
+{
+ queue_entry_t *queue;
+
+ if (handle == ODP_QUEUE_INVALID)
+ ODP_ABORT("Ivalid queue handle\n");
+
+ queue = queue_to_qentry(handle);
+
+ return queue->s.param.sched.group;
+}
+
odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type,
odp_queue_param_t *param)
{
--
1.8.3.2
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp