From patchwork Tue Feb 3 04:44:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44191 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A78212034D for ; Tue, 3 Feb 2015 04:45:58 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf18705335wgh.3 for ; Mon, 02 Feb 2015 20:45:58 -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=+xuLiTkI8WZnkAkl26mOHeqIc+f7HakymPcjGj4nIVc=; b=BAYvKtUHvH3TViYjhFWtwuJuGS5RkYPAO747YZtInN6uAk1cvfHHUlzAqAMX9k2gPJ SLrsZqsHBgiDgQwvjk4RvLdMAUZL0ppHv51yVCSKcfEQ3d/eMRRH8O62EGrCXPlK+Yk9 mGH5IC8P99/Uc4LnBiWjvJrp8zp1nN5+vAysVa5EktrQDHDtqbdOW0njBKm9ZOWBRFZu ABOOHgB6EBM9X6nO4Kx5Twjh4cVwMB2hI1MOBdd461FeRQj8znHqXRE0f3zded4BYv09 GAw3m8eYgoxqylFI3IYBN8YJDhI+zirSUkK5CuxZ4F1bh9k/cZTVVXC2p1zad2fma8ll IE5w== X-Gm-Message-State: ALoCoQnld1bldBAQ0v9bm0XBWjQE97nzs+9p7xiWHeCjxcyCp0PDcwSX25ADZFPAvIXnOo0CaUCP X-Received: by 10.194.201.10 with SMTP id jw10mr2794959wjc.3.1422938757973; Mon, 02 Feb 2015 20:45:57 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.132 with SMTP id z4ls318736laa.97.gmail; Mon, 02 Feb 2015 20:45:57 -0800 (PST) X-Received: by 10.112.134.74 with SMTP id pi10mr22961786lbb.67.1422938757673; Mon, 02 Feb 2015 20:45:57 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id b1si18382981lab.72.2015.02.02.20.45.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id ge10so47954909lab.11 for ; Mon, 02 Feb 2015 20:45:57 -0800 (PST) X-Received: by 10.152.44.228 with SMTP id h4mr16996125lam.31.1422938757593; Mon, 02 Feb 2015 20:45:57 -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 h5csp1712372lbj; Mon, 2 Feb 2015 20:45:57 -0800 (PST) X-Received: by 10.229.69.131 with SMTP id z3mr5863253qci.14.1422938756432; Mon, 02 Feb 2015 20:45:56 -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 r5si7029827qad.68.2015.02.02.20.45.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:56 -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 1YIVMy-000643-FL; Tue, 03 Feb 2015 04:45:48 +0000 Received: from mail-ob0-f170.google.com ([209.85.214.170]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMb-0005zi-9D for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:25 +0000 Received: by mail-ob0-f170.google.com with SMTP id va2so8734034obc.1 for ; Mon, 02 Feb 2015 20:45:20 -0800 (PST) X-Received: by 10.60.54.71 with SMTP id h7mr14532742oep.56.1422938719982; Mon, 02 Feb 2015 20:45:19 -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.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:19 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:47 -0600 Message-Id: <1422938699-12877-8-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 07/19] api: pool: 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.52 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_pool_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/pool.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 1582102..b6b4962 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -184,6 +184,19 @@ int odp_pool_info(odp_pool_t pool, odp_pool_info_t *info); void odp_pool_print(odp_pool_t pool); /** + * Get printable value for an odp_pool_t + * + * @param hdl odp_pool_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_pool_t handle. + */ +uint64_t odp_pool_to_u64(odp_pool_t hdl); + +/** * Buffer alloc * * The validity of a buffer can be cheked at any time with odp_buffer_is_valid()