From patchwork Tue Feb 3 04:44:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44184 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3D6712034D for ; Tue, 3 Feb 2015 04:45:28 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gm9sf18874940lab.0 for ; Mon, 02 Feb 2015 20:45:27 -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=KTNBmWBzIvxDJIdDTyGP0+QECQ9iwphiAGNr2RxD6N4=; b=EKYMnNNA+ZJGeNIZDWUDsNnQ93g95D7CexYZf6xF7JNVi2EpuWv2zd0MVF+dXnvQeb o5XqQu3G7UMDtJEchHujpmXafG/OD5H6AQTM+a21vAEqKjK4P0WkV19J83VeK0Xn+W5k fZud4mxZWeyWzkioU+rxMTQSlW9ua+8ZPsU7Tt87kKzXsplIqOCu3YO0yeL6kUl5caso Xf3RO9L1qQr9sYnmxFcD5CHMXWG6FvJjQqVasnStaPcX2snA6j/mQsdJivURYTxIUkrA BENSjrY6gcff0MpfsaLNozEsS7orpO9HGLx5LU3gRlRAqNZoiVgH+GUKtYkHWYUUriLO A04Q== X-Gm-Message-State: ALoCoQkl73vC8RmoNPwj1OH1IlDG46XitSMD3GBhDuHrphWXalwmZdl0IBzQNpw65Tbsp+NQGT+C X-Received: by 10.112.160.3 with SMTP id xg3mr505767lbb.5.1422938726857; Mon, 02 Feb 2015 20:45:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.168 with SMTP id an8ls710382lac.62.gmail; Mon, 02 Feb 2015 20:45:26 -0800 (PST) X-Received: by 10.152.226.134 with SMTP id rs6mr14093767lac.98.1422938726498; Mon, 02 Feb 2015 20:45:26 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id yo1si18364635lbb.92.2015.02.02.20.45.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:26 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id s18so48037685lam.3 for ; Mon, 02 Feb 2015 20:45:26 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr22699042lbb.41.1422938726386; Mon, 02 Feb 2015 20:45:26 -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 h5csp1712194lbj; Mon, 2 Feb 2015 20:45:25 -0800 (PST) X-Received: by 10.140.36.239 with SMTP id p102mr1575047qgp.8.1422938725172; Mon, 02 Feb 2015 20:45:25 -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 j13si27695915qaa.61.2015.02.02.20.45.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:25 -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-0005zq-8G; Tue, 03 Feb 2015 04:45:22 +0000 Received: from mail-ob0-f172.google.com ([209.85.214.172]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMQ-0005z7-Og for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:14 +0000 Received: by mail-ob0-f172.google.com with SMTP id nt9so16977698obb.3 for ; Mon, 02 Feb 2015 20:45:09 -0800 (PST) X-Received: by 10.202.105.211 with SMTP id e202mr13456685oic.134.1422938709527; Mon, 02 Feb 2015 20:45:09 -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.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:08 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:41 -0600 Message-Id: <1422938699-12877-2-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 01/19] api: buffers: add strong typing handle diplay 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.44 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_buffer_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/buffer.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h index 12b2f5a..09bddf2 100644 --- a/include/odp/api/buffer.h +++ b/include/odp/api/buffer.h @@ -113,6 +113,19 @@ odp_pool_t odp_buffer_pool(odp_buffer_t buf); void odp_buffer_print(odp_buffer_t buf); /** + * Get printable value for an odp_buffer_t + * + * @param hdl odp_buffer_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_buffer_t handle. + */ +uint64_t odp_buffer_to_u64(odp_buffer_t hdl); + +/** * @} */