From patchwork Tue Dec 2 15:47:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 41814 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3A1320672 for ; Tue, 2 Dec 2014 15:47:57 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf8484281eek.9 for ; Tue, 02 Dec 2014 07:47:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=AAeIFLwYoU7DcDjYsDQSCjgBiwEgc2/cmNozqjJZN6w=; b=dISKswpuVgr0GCvY/1H1bDMb7HPNV/J05ZFpJpTlo3Ugnatk/aBilt4++88mEl5eX6 TmeaYk7jPe4adil31/Qe61pLbBzBq9bMA3Jd29m19PS23LTdc/tiDCLbzql+5I9kKYMV vGwXBb4TRgbpTtVL1oRFffjsvjPN2b9MQwm6XEWYhX0JPpJOOsEnu9Kv5/OTMVFmag61 apT12o019RgghfASMRmi/EMU4S2H1LLlD7/4DwHCZUdbgrOXsdAOxvU05fk2tW5kHYcG biO0VygLfxD0OVGGUqkcvRWdMAoYL2x6sN1iaq7miKnuUWGeBG6/BV/JLANb+T0DLaF4 CTkw== X-Gm-Message-State: ALoCoQmt/X5mi0kVK+MmY/rRrySvrYQ/bDwP3726YYukRWcTczmNxO5+SuYw6C2LU6FYmE4yS39d X-Received: by 10.112.154.194 with SMTP id vq2mr242lbb.10.1417535276920; Tue, 02 Dec 2014 07:47:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.98.7 with SMTP id ee7ls360839wib.46.canary; Tue, 02 Dec 2014 07:47:56 -0800 (PST) X-Received: by 10.180.107.1 with SMTP id gy1mr6341557wib.8.1417535276681; Tue, 02 Dec 2014 07:47:56 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com. [74.125.83.53]) by mx.google.com with ESMTPS id ea1si36693793wib.83.2014.12.02.07.47.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 07:47:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 74.125.83.53 as permitted sender) client-ip=74.125.83.53; Received: by mail-ee0-f53.google.com with SMTP id c41so21528eek.26 for ; Tue, 02 Dec 2014 07:47:56 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr62220423lbb.80.1417535276498; Tue, 02 Dec 2014 07:47:56 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp506299lbc; Tue, 2 Dec 2014 07:47:55 -0800 (PST) X-Received: by 10.140.109.135 with SMTP id l7mr65928527qgf.80.1417535274899; Tue, 02 Dec 2014 07:47:54 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id a2si24655876qae.86.2014.12.02.07.47.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Dec 2014 07:47:54 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xvpg8-0001t1-Fb; Tue, 02 Dec 2014 15:47:52 +0000 Received: from mail-ee0-f51.google.com ([74.125.83.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xvpg0-0001mq-IX for lng-odp@lists.linaro.org; Tue, 02 Dec 2014 15:47:44 +0000 Received: by mail-ee0-f51.google.com with SMTP id b15so21473eek.10 for ; Tue, 02 Dec 2014 07:47:39 -0800 (PST) X-Received: by 10.152.2.41 with SMTP id 9mr61252737lar.47.1417535258764; Tue, 02 Dec 2014 07:47:38 -0800 (PST) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id l1sm5692968lbd.32.2014.12.02.07.47.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 07:47:37 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 2 Dec 2014 17:47:27 +0200 Message-Id: <1417535248-19398-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1417535248-19398-1-git-send-email-taras.kondratiuk@linaro.org> References: <1417535248-19398-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 1/2] api: queue: add odp_queue_destroy() X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 74.125.83.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Taras Kondratiuk --- platform/linux-generic/include/api/odp_queue.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h index b8ac4bb..b994c20 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