aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic
diff options
context:
space:
mode:
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>2014-12-02 17:47:27 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-12-16 02:07:14 +0300
commit051fd8d5eb4d07b60f792d78ba6b03a4f9ee9379 (patch)
tree9198738110e9d6254cff9024046286b4ad84f34c /platform/linux-generic
parent98129ba55597c2b0faa18ac6fdb70a4ed20e8854 (diff)
api: queue: add odp_queue_destroy()
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r--platform/linux-generic/include/api/odp_queue.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h
index b8ac4bbb3..b994c20ac 100644
--- a/platform/linux-generic/include/api/odp_queue.h
+++ b/platform/linux-generic/include/api/odp_queue.h
@@ -124,6 +124,20 @@ odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type,
odp_queue_param_t *param);
/**
+ * Destroy ODP queue
+ *
+ * Destroys ODP queue. The queue must be empty and detached from other
+ * ODP API (crypto, pktio, etc). Application must ensure that no other
+ * operations on this queue are invoked in parallel. Otherwise behavior
+ * is undefined.
+ *
+ * @param queue Queue handle
+ *
+ * @return 0 if successful
+ */
+int odp_queue_destroy(odp_queue_t queue);
+
+/**
* Find a queue by name
*
* @param name Queue name