From patchwork Thu Dec 18 13:35:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42450 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2ED0426C6B for ; Thu, 18 Dec 2014 13:35:52 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf756627wgh.10 for ; Thu, 18 Dec 2014 05:35:51 -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=jNkAWHATA9Wwr/Vz8WyH8jtikmi1cjqEYJJwJ6p939A=; b=IAiZd1ZHb6ZmkuTolpA9BKZe/HzL/ZXW2gxxbVY/T+jpNNimxZncz+wKRkZb8mgpUN riPONstCEItc6+wtRbCMACI57hNKfwrZspAFRaO8ZUw14Zeuzf9l7JPi7XHY1WSgy1fC 8XhWkvhri5digSnLTc+L9AojRJbbKU9U/DSwrVsbI4j5aYyf54QC7c7F9tH1nyoSLvjW ffWy+qN38/k5nj0pzzWdNYzv8XinwJy0HODc8v3ip6s4FJFwJRLa6O5S5+W6MQw38ZKu Uo1Sx2nNNyVQn9oNWXsOy9mYFXxvbZi9L+0iWmjUVWmAGvbseU8WnXPQu1k6GNDmzJv6 r7kg== X-Gm-Message-State: ALoCoQm+LUQq8pAqgcOFG09zUgsECqnJIiN/9QuagmmvQNbBBce+TPZaxlJcCbJ6hc9ycXuihA8D X-Received: by 10.112.147.195 with SMTP id tm3mr278024lbb.18.1418909751407; Thu, 18 Dec 2014 05:35:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.193 with SMTP id jq1ls1196087lab.85.gmail; Thu, 18 Dec 2014 05:35:51 -0800 (PST) X-Received: by 10.152.43.49 with SMTP id t17mr2393795lal.52.1418909751102; Thu, 18 Dec 2014 05:35:51 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id ed4si6938805lbc.35.2014.12.18.05.35.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so997116lab.10 for ; Thu, 18 Dec 2014 05:35:51 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr2265448lbc.91.1418909750970; Thu, 18 Dec 2014 05:35:50 -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.142.69 with SMTP id ru5csp1707590lbb; Thu, 18 Dec 2014 05:35:49 -0800 (PST) X-Received: by 10.140.29.97 with SMTP id a88mr3229318qga.69.1418909748726; Thu, 18 Dec 2014 05:35:48 -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 l7si8232800qcz.4.2014.12.18.05.35.47 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:48 -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 1Y1bF4-00049Y-OS; Thu, 18 Dec 2014 13:35:46 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y1bEs-000473-B9 for lng-odp@lists.linaro.org; Thu, 18 Dec 2014 13:35:34 +0000 Received: by mail-la0-f47.google.com with SMTP id hz20so969137lab.20 for ; Thu, 18 Dec 2014 05:35:28 -0800 (PST) X-Received: by 10.152.2.74 with SMTP id 10mr2291262las.38.1418909728328; Thu, 18 Dec 2014 05:35:28 -0800 (PST) Received: from robucws331.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id pn7sm456832lbb.6.2014.12.18.05.35.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:27 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Thu, 18 Dec 2014 15:35:17 +0200 Message-Id: <1418909718-6413-2-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1418909718-6413-1-git-send-email-ciprian.barbu@linaro.org> References: <1418909718-6413-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 1/2] api: queue: add odp_queue_sched_prio and odp_queue_sched_group 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: ciprian.barbu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 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: Ciprian Barbu --- platform/linux-generic/include/api/odp_queue.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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); + +/** * @} */