From patchwork Tue Feb 3 04:44:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44189 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F8E12034D for ; Tue, 3 Feb 2015 04:45:49 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf18835554lab.3 for ; Mon, 02 Feb 2015 20:45:48 -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=mP6PWCh7UK+I+Z2Rh9LGmSBJIzCNK+NQUt4nRkWIMJM=; b=lIwWiQSuT2kvWYkdHceb9JSl0YdGn1tIkRmfSeSCESJIXbM+2ue1stPT+EYGkWPL0t xj5VJacE71J+9TuWR7GM+3xOYRZKM8JMNTxUfqvBhcgb5gwi7Oynmkuz2eY91vfZYBrh qMd+vvdJWYoH/nHvFbEpdDpJpFvfBv+ZhM5Hp5zWxpnYgYf9xQiLK/6BSvW8sotA0kae SEVnYk/k95rMtTLqEhY1IPiwEN9gUzU2g6vggHO8wzbcZaXx0luc7ybhkiq8bfnzIMJ8 w8x7uLss4l8SvO9MTgBcs9MDH0hxBOnbsMuq6Uz598lwZh/26ZvuYS3ciQ4jZcIURDV7 vp2A== X-Gm-Message-State: ALoCoQlkfNhYkOepUhovSflLe1JNHhU6MioGNOSNgUvtVetsXEuEnyaCj8W9qACZ2O5Mn53JuNgU X-Received: by 10.152.36.168 with SMTP id r8mr2805836laj.2.1422938748521; Mon, 02 Feb 2015 20:45:48 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.229 with SMTP id v5ls592632lav.55.gmail; Mon, 02 Feb 2015 20:45:48 -0800 (PST) X-Received: by 10.152.20.169 with SMTP id o9mr22889375lae.50.1422938748178; Mon, 02 Feb 2015 20:45:48 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id g4si2182675lbc.48.2015.02.02.20.45.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id pv20so47778898lab.7 for ; Mon, 02 Feb 2015 20:45:48 -0800 (PST) X-Received: by 10.112.25.104 with SMTP id b8mr22553698lbg.69.1422938748094; Mon, 02 Feb 2015 20:45:48 -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 h5csp1712314lbj; Mon, 2 Feb 2015 20:45:47 -0800 (PST) X-Received: by 10.140.42.194 with SMTP id c60mr46481292qga.61.1422938746845; Mon, 02 Feb 2015 20:45:46 -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 t12si27649291qge.100.2015.02.02.20.45.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:46 -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 1YIVMu-000638-3u; Tue, 03 Feb 2015 04:45:44 +0000 Received: from mail-oi0-f43.google.com ([209.85.218.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMZ-0005zZ-LD for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:23 +0000 Received: by mail-oi0-f43.google.com with SMTP id z81so47537165oif.2 for ; Mon, 02 Feb 2015 20:45:18 -0800 (PST) X-Received: by 10.60.84.40 with SMTP id v8mr14303107oey.73.1422938718439; Mon, 02 Feb 2015 20:45:18 -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.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:17 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:46 -0600 Message-Id: <1422938699-12877-7-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 06/19] api: pktio: 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.48 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_pktio_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/packet_io.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index da7bc3f..3e4bac4 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -232,6 +232,18 @@ int odp_pktio_skip_set(odp_pktio_t pktio_in, uint32_t offset); */ int odp_pktio_headroom_set(odp_pktio_t pktio_in, uint32_t headroom); +/** + * Get printable value for an odp_pktio_t + * + * @param hdl odp_pktio_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_pktio_t handle. + */ +uint64_t odp_pktio_to_u64(odp_pktio_t hdl); /** * @}