From patchwork Thu Nov 24 16:22:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 83933 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp220696obn; Thu, 24 Nov 2016 07:31:24 -0800 (PST) X-Received: by 10.237.59.119 with SMTP id q52mr2483932qte.225.1480001484531; Thu, 24 Nov 2016 07:31:24 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y48si15392064qtc.195.2016.11.24.07.31.24; Thu, 24 Nov 2016 07:31:24 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 24FFC62DB2; Thu, 24 Nov 2016 15:31:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4BBB562E01; Thu, 24 Nov 2016 15:25:51 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3A45862DD0; Thu, 24 Nov 2016 15:25:28 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 7274762DD0 for ; Thu, 24 Nov 2016 15:23:03 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id c13so31103635lfg.0 for ; Thu, 24 Nov 2016 07:23:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=utQ5rW0xOQ0lBxVI369eLmdOcIZ7iVpyNcMJ3x48hEU=; b=Ph/rdE9agDLi4EBeV/xLT0onP9qLuX02F7IwvOYti6ZUHRI9NWHFY/tSUBeNkRLvCK s1hhIciH65YuOl+O1aclSuySuAJH2BjjimdkE5lIdjZK5H3mF8D5/93k8JvxPVgVox+d BYv+j/rvhEIrZ6Bw7DlDco9FHhRX5snpxc/jp9IrFZGy+yrAO5ZqzyVn1R22XWNEKF35 aC0mM7ZIdJJc6ijJu4KjNvmP65xEenwp0Q5OYsC7YmSwiEY6f7XoARjI5luUaItmG+Ve HIpsf3KBVeTCSxlBnvhUdpd3VCGKbJhXHpzWWXWcuQn8s3Xt/MTKv2qyYIDk+xtq68c/ T1Dg== X-Gm-Message-State: AKaTC00QJfnWVbeOxFyMB6ddIK6nEImAvpx22JuEl/id8bavNVKFcmoGMMSNEiA0YzBGQU1Yap0= X-Received: by 10.46.1.74 with SMTP id 71mr1758201ljb.14.1480000982215; Thu, 24 Nov 2016 07:23:02 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id x142sm8215976lfa.32.2016.11.24.07.23.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 07:23:01 -0800 (PST) From: Christophe Milard To: maxim.uvarov@linaro.com, mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Thu, 24 Nov 2016 17:22:24 +0100 Message-Id: <1480004553-46760-7-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480004553-46760-1-git-send-email-christophe.milard@linaro.org> References: <1480004553-46760-1-git-send-email-christophe.milard@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv9 06/15] linux-gen: push internal flag definition X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" File platform/linux-generic/include/odp_shm_internal.h exposes shm internals used by IPC. The bits used by the internal flags are moved to make room for more "official" values. The platform/linux-generic/include/odp_shm_internal.h file should really be removed when _ishm is used, but as long as we have the current IPC, removing the file would break compilation. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_shm_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/platform/linux-generic/include/odp_shm_internal.h b/platform/linux-generic/include/odp_shm_internal.h index 30e60f7..8bd105d 100644 --- a/platform/linux-generic/include/odp_shm_internal.h +++ b/platform/linux-generic/include/odp_shm_internal.h @@ -16,8 +16,8 @@ extern "C" { #define SHM_DEVNAME_MAXLEN (ODP_SHM_NAME_LEN + 16) #define SHM_DEVNAME_FORMAT "/odp-%d-%s" /* /dev/shm/odp-- */ -#define _ODP_SHM_PROC_NOCREAT 0x4 /**< Do not create shm if not exist */ -#define _ODP_SHM_O_EXCL 0x8 /**< Do not create shm if exist */ +#define _ODP_SHM_PROC_NOCREAT 0x40 /**< Do not create shm if not exist */ +#define _ODP_SHM_O_EXCL 0x80 /**< Do not create shm if exist */ #ifdef __cplusplus }