From patchwork Tue Feb 3 04:44:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44190 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8CF462034D for ; Tue, 3 Feb 2015 04:45:57 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id u56sf18891837wes.2 for ; Mon, 02 Feb 2015 20:45:56 -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=7h+uEPvmwdVjn5rbcukkeIEoOI6tX0XAN2Apupvu27A=; b=PSpkIkOcU0bEbPwzsF5HYTp5wDkGw8slKB7DbYgoAyfktpQo0YnqBKzxFNoS+z1rh5 17CEVIUshxR/MMxCchSDNLtGGJhZtF+P3Zsj28PXO6L+xnoau67nEbi8HF/e2+xEikL4 op6/iLKhboE4G9tD11h5IaI2JWLEsBm0snugMarG3gpcAW8GUfBAJGKH/SrA6Iw5ZlZo GxQLNl0OCD7Va1mU59DyJGlcIygpZctSBWXEwpty4bmqu7LanaL/bMazLtqPR+Sl7IWo 6eoQQ+YfYpeviKx0PGCBPOMK18Bw3YYa6KxvLU52RLOYJ1b3xmD6Fzrox5UfBe0tN3Yk nC3g== X-Gm-Message-State: ALoCoQltoB4PAIO3JlA0p5g5LL8axc+Lp6piT1WK7IQ0SNw233+kYVC+je6PctaIe4KYKYM+yoA5 X-Received: by 10.152.36.168 with SMTP id r8mr2805899laj.2.1422938756901; Mon, 02 Feb 2015 20:45:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.199 with SMTP id u7ls690351lau.63.gmail; Mon, 02 Feb 2015 20:45:56 -0800 (PST) X-Received: by 10.112.140.196 with SMTP id ri4mr22395392lbb.55.1422938756528; Mon, 02 Feb 2015 20:45:56 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id bf5si18335169lab.128.2015.02.02.20.45.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so47833804lab.6 for ; Mon, 02 Feb 2015 20:45:56 -0800 (PST) X-Received: by 10.152.2.41 with SMTP id 9mr1843578lar.59.1422938756445; Mon, 02 Feb 2015 20:45: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.35.133 with SMTP id h5csp1712366lbj; Mon, 2 Feb 2015 20:45:55 -0800 (PST) X-Received: by 10.224.22.146 with SMTP id n18mr49676303qab.74.1422938755274; Mon, 02 Feb 2015 20:45:55 -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 ec7si26954383qcb.23.2015.02.02.20.45.54 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:55 -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 1YIVN2-00064k-Q4; Tue, 03 Feb 2015 04:45:52 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMd-0005zr-CR for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:27 +0000 Received: by mail-ob0-f177.google.com with SMTP id wp18so16562728obc.8 for ; Mon, 02 Feb 2015 20:45:22 -0800 (PST) X-Received: by 10.60.17.234 with SMTP id r10mr14528001oed.9.1422938722141; Mon, 02 Feb 2015 20:45:22 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id vs5sm10277537oeb.14.2015.02.02.20.45.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:21 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:48 -0600 Message-Id: <1422938699-12877-9-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> References: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 08/19] api: queues: add strong typing handle display function 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: bill.fischofer@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.47 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 Add function odp_queue_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/queue.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h index b63cc34..0b72a5e 100644 --- a/include/odp/api/queue.h +++ b/include/odp/api/queue.h @@ -298,6 +298,19 @@ odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue); odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue); /** + * Get printable value for an odp_queue_t + * + * @param hdl odp_queue_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_queue_t handle. + */ +uint64_t odp_queue_to_u64(odp_queue_t hdl); + +/** * @} */