From patchwork Tue Dec 16 11:43:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42320 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6F7062456A for ; Tue, 16 Dec 2014 11:43:36 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf8509521wgh.1 for ; Tue, 16 Dec 2014 03:43:35 -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: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=tSwm0Pot9Zd84HBVZ3ceJ5ycLSfXClB6NXg0/+d6UHI=; b=fWiJgIGMw5XU5RBA/TnxLLWeTq9crDSoNJOeE2arMSj+2BKafeGicgHia6F0GbgXru IvtjJ5qA+x6CN/8yuoCIJh4u8Mj4htHl07A+I3ncaA5xoEhI5zncJEpbT+WDlogKn6EX Fl4AUO3v4YAerpGmoo6DOYx4hGkCglraV0ZA8fj4XZpkjympH+LkhZIpF9AWy3+2AGCd O6jpnva03SeW/qC9ljFGhhKE+Xdqlcr0W8QVIif0RkbPk25CXXTqm5VKrl61pVZkFjGM CCoOQKS7SPlrOzmq8iIXLA73ExVq4xyIP4OJZK7vBt1e910kQNUoVPcgX0P1wlYwHAGX /3gw== X-Gm-Message-State: ALoCoQl8Jo0GfyolQAOcSkIKsCmNfq3QaX856w/MFfkA5arBPx7JKZ0siKq1irC7+sU+AhUZ0lCZ X-Received: by 10.180.105.97 with SMTP id gl1mr390211wib.7.1418730215736; Tue, 16 Dec 2014 03:43:35 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls713239laj.71.gmail; Tue, 16 Dec 2014 03:43:35 -0800 (PST) X-Received: by 10.112.85.11 with SMTP id d11mr35201722lbz.100.1418730215473; Tue, 16 Dec 2014 03:43:35 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id k1si511001lah.94.2014.12.16.03.43.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 03:43:35 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id pv20so10806500lab.41 for ; Tue, 16 Dec 2014 03:43:35 -0800 (PST) X-Received: by 10.152.7.229 with SMTP id m5mr35545143laa.80.1418730215340; Tue, 16 Dec 2014 03:43:35 -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 ru5csp1007660lbb; Tue, 16 Dec 2014 03:43:34 -0800 (PST) X-Received: by 10.229.61.5 with SMTP id r5mr5477922qch.28.1418730213785; Tue, 16 Dec 2014 03:43:33 -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 95si564124qgb.16.2014.12.16.03.43.32 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 03:43:33 -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 1Y0qXL-0001CU-CO; Tue, 16 Dec 2014 11:43:31 +0000 Received: from mail-ob0-f180.google.com ([209.85.214.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0qXF-00012Y-9a for lng-odp@lists.linaro.org; Tue, 16 Dec 2014 11:43:25 +0000 Received: by mail-ob0-f180.google.com with SMTP id wp4so22482822obc.11 for ; Tue, 16 Dec 2014 03:43:20 -0800 (PST) X-Received: by 10.60.250.135 with SMTP id zc7mr21897168oec.54.1418730199879; Tue, 16 Dec 2014 03:43: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 fi4sm199134obb.16.2014.12.16.03.43.19 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 03:43:19 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 16 Dec 2014 05:43:11 -0600 Message-Id: <1418730191-26327-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [PATCH] Documentation: Change odp_buffer_pool_info_t output 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.54 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 Change odp_buffer_pool_info() output to use ODP_SHM_INVALID instead of ODP_SHM_NULL. Signed-off-by: Bill Fischofer Reviewed-by: Taras Kondratiuk --- platform/linux-generic/include/api/odp_buffer_pool.h | 2 +- platform/linux-generic/odp_buffer_pool.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/api/odp_buffer_pool.h b/platform/linux-generic/include/api/odp_buffer_pool.h index 4da5f84..8380ac1 100644 --- a/platform/linux-generic/include/api/odp_buffer_pool.h +++ b/platform/linux-generic/include/api/odp_buffer_pool.h @@ -117,7 +117,7 @@ typedef struct odp_buffer_pool_info_t { odp_shm_t shm; /**< handle of shared memory area supplied by application to contain buffer pool, or - ODP_SHM_NULL if this pool is + ODP_SHM_INVALID if this pool is managed by ODP */ odp_buffer_pool_param_t params; /**< pool parameters */ } odp_buffer_pool_info_t; diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c index 4c8b037..2d2aba2 100644 --- a/platform/linux-generic/odp_buffer_pool.c +++ b/platform/linux-generic/odp_buffer_pool.c @@ -401,7 +401,7 @@ int odp_buffer_pool_info(odp_buffer_pool_t pool_hdl, info->name = pool->s.name; info->shm = pool->s.flags.user_supplied_shm ? - pool->s.pool_shm : ODP_SHM_NULL; + pool->s.pool_shm : ODP_SHM_INVALID; info->params.buf_size = pool->s.params.buf_size; info->params.buf_align = pool->s.params.buf_align; info->params.num_bufs = pool->s.params.num_bufs;