From patchwork Mon Dec 15 17:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 42266 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 461F026C6C for ; Mon, 15 Dec 2014 17:10:36 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf7842016eek.0 for ; Mon, 15 Dec 2014 09:10: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: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=4XklaFytEI3ANqt8RK0zoHIfmq4lJnPWzJZGHScWTK0=; b=hJNF9xS7djsMFz4Ye7GvfG8PIpkDtoZgaoex7e55BEeWXjoXChQSp9SxNnpdCsZJjf E2QpFuJ3J6Yn5QCUjXkNUD0A40UhwAoaLk2Q/WOAeCHzS3nep6GnFBl4rGagrXCO8Irf 8fBR8tc4NIWyNfUOwJa9sDrPmpR3bNL/G8GMcyF9HVxhlnvYVb5nILq7spz8za0Hb53Y HTf1mTzWHvRly8COpu0vDjFJeg4haRFJqODc+2Vzr+YuBWYHLdhCzSCKb3TxDgka8FzT pGxVGKgv6NUaR1W6+Jf7ZOs2411hCyeQEy2wmWYnJwlce+rRK/Z0+NZBo7ODxmbi0NDM uv4Q== X-Gm-Message-State: ALoCoQlPbvcW93dp5p6XzbtLwcfagdoVfma+MIKgDdW37fiwoRGX1kvTMD/Xi8aDEg+HSEMV3Wyg X-Received: by 10.180.99.227 with SMTP id et3mr3004004wib.3.1418663435542; Mon, 15 Dec 2014 09:10:35 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.7 with SMTP id 7ls638545laq.88.gmail; Mon, 15 Dec 2014 09:10:35 -0800 (PST) X-Received: by 10.152.6.166 with SMTP id c6mr31258902laa.20.1418663435236; Mon, 15 Dec 2014 09:10:35 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id un3si11080989lbb.21.2014.12.15.09.10.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 09:10:35 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id z12so9340112lbi.4 for ; Mon, 15 Dec 2014 09:10:35 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr30864384lbc.23.1418663435156; Mon, 15 Dec 2014 09:10: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 ru5csp781997lbb; Mon, 15 Dec 2014 09:10:34 -0800 (PST) X-Received: by 10.140.105.55 with SMTP id b52mr15455973qgf.1.1418663433773; Mon, 15 Dec 2014 09:10: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 n52si11231293qge.91.2014.12.15.09.10.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 09:10: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 1Y0ZAE-0000gx-8P; Mon, 15 Dec 2014 17:10:30 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0Z9v-0000ah-43 for lng-odp@lists.linaro.org; Mon, 15 Dec 2014 17:10:11 +0000 Received: by mail-la0-f46.google.com with SMTP id q1so9693651lam.5 for ; Mon, 15 Dec 2014 09:10:05 -0800 (PST) X-Received: by 10.152.22.67 with SMTP id b3mr27995119laf.82.1418663405397; Mon, 15 Dec 2014 09:10:05 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id l9sm1208585lae.0.2014.12.15.09.10.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 09:10:04 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Mon, 15 Dec 2014 19:09:48 +0200 Message-Id: <1418663392-28354-4-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418663392-28354-1-git-send-email-taras.kondratiuk@linaro.org> References: <1418663392-28354-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 3/7] api: buffer: move odp_buffer_pool to odp_buffer.h 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: taras.kondratiuk@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.217.173 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 From: Bill Fischofer Signed-off-by: Bill Fischofer Signed-off-by: Taras Kondratiuk --- platform/linux-generic/include/api/odp_buffer.h | 9 +++++++++ platform/linux-generic/include/api/odp_buffer_pool.h | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/platform/linux-generic/include/api/odp_buffer.h b/platform/linux-generic/include/api/odp_buffer.h index da23120..a7036e8 100644 --- a/platform/linux-generic/include/api/odp_buffer.h +++ b/platform/linux-generic/include/api/odp_buffer.h @@ -73,6 +73,15 @@ int odp_buffer_type(odp_buffer_t buf); int odp_buffer_is_valid(odp_buffer_t buf); /** + * Buffer pool of the buffer + * + * @param buf Buffer handle + * + * @return Handle of buffer pool buffer belongs to + */ +odp_buffer_pool_t odp_buffer_pool(odp_buffer_t buf); + +/** * Print buffer metadata to STDOUT * * @param buf Buffer handle diff --git a/platform/linux-generic/include/api/odp_buffer_pool.h b/platform/linux-generic/include/api/odp_buffer_pool.h index c12d718..b287f79 100644 --- a/platform/linux-generic/include/api/odp_buffer_pool.h +++ b/platform/linux-generic/include/api/odp_buffer_pool.h @@ -88,16 +88,6 @@ odp_buffer_t odp_buffer_alloc(odp_buffer_pool_t pool); */ void odp_buffer_free(odp_buffer_t buf); - -/** - * Buffer pool of the buffer - * - * @param buf Buffer handle - * - * @return Buffer pool the buffer was allocated from - */ -odp_buffer_pool_t odp_buffer_pool(odp_buffer_t buf); - /** * @} */