aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/api
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2015-01-26 15:05:37 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-01-27 15:29:40 +0300
commit375146358ac73138e97341972ac404c8f5fd6b72 (patch)
treea960a86a1e8f9ae5219eb86ec69e1f7e5269a93b /platform/linux-generic/include/api
parenta49b7b64fe4835eabe0d27804bd84417a635292b (diff)
api: event: schedule_multi and queue_enq_multi
Changed odp_schedule_multi() and odp_queue_enq_multi() to use events instead of buffers. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/api')
-rw-r--r--platform/linux-generic/include/api/odp_queue.h8
-rw-r--r--platform/linux-generic/include/api/odp_schedule.h16
2 files changed, 12 insertions, 12 deletions
diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h
index 3caa7c157..61afd3689 100644
--- a/platform/linux-generic/include/api/odp_queue.h
+++ b/platform/linux-generic/include/api/odp_queue.h
@@ -181,15 +181,15 @@ void *odp_queue_get_context(odp_queue_t queue);
int odp_queue_enq(odp_queue_t queue, odp_event_t ev);
/**
- * Enqueue multiple buffers to a queue
+ * Enqueue multiple events to a queue
*
* @param queue Queue handle
- * @param buf Buffer handles
- * @param num Number of buffer handles
+ * @param ev Event handles
+ * @param num Number of event handles
*
* @return 0 if succesful
*/
-int odp_queue_enq_multi(odp_queue_t queue, odp_buffer_t buf[], int num);
+int odp_queue_enq_multi(odp_queue_t queue, odp_event_t ev[], int num);
/**
* Queue dequeue
diff --git a/platform/linux-generic/include/api/odp_schedule.h b/platform/linux-generic/include/api/odp_schedule.h
index 45fa48c62..688a6db37 100644
--- a/platform/linux-generic/include/api/odp_schedule.h
+++ b/platform/linux-generic/include/api/odp_schedule.h
@@ -64,22 +64,22 @@ uint64_t odp_schedule_wait_time(uint64_t ns);
odp_event_t odp_schedule(odp_queue_t *from, uint64_t wait);
/**
- * Schedule multiple buffers
+ * Schedule multiple events
*
- * Like odp_schedule(), but returns multiple buffers from a queue.
+ * Like odp_schedule(), but returns multiple events from a queue.
*
- * @param from Output parameter for the source queue (where the buffer was
+ * @param from Output parameter for the source queue (where the event was
* dequeued from). Ignored if NULL.
- * @param wait Minimum time to wait for a buffer. Waits infinitely, if set to
+ * @param wait Minimum time to wait for an event. Waits infinitely, if set to
* ODP_SCHED_WAIT. Does not wait, if set to ODP_SCHED_NO_WAIT.
* Use odp_schedule_wait_time() to convert time to other wait
* values.
- * @param out_buf Buffer array for output
- * @param num Maximum number of buffers to output
+ * @param events Event array for output
+ * @param num Maximum number of events to output
*
- * @return Number of buffers outputed (0 ... num)
+ * @return Number of events outputed (0 ... num)
*/
-int odp_schedule_multi(odp_queue_t *from, uint64_t wait, odp_buffer_t out_buf[],
+int odp_schedule_multi(odp_queue_t *from, uint64_t wait, odp_event_t events[],
unsigned int num);
/**