From patchwork Mon Oct 24 09:24:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 78886 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2449046qge; Mon, 24 Oct 2016 01:27:36 -0700 (PDT) X-Received: by 10.55.107.198 with SMTP id g189mr13038995qkc.287.1477297656022; Mon, 24 Oct 2016 01:27:36 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m23si10276632qtc.142.2016.10.24.01.27.35; Mon, 24 Oct 2016 01:27:36 -0700 (PDT) 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 B4F2C61635; Mon, 24 Oct 2016 08:27:35 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 D987C615CF; Mon, 24 Oct 2016 08:25:04 +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 8329E6155C; Mon, 24 Oct 2016 08:24:56 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id B2F9560C4B for ; Mon, 24 Oct 2016 08:24:53 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id b75so187516071lfg.3 for ; Mon, 24 Oct 2016 01:24:53 -0700 (PDT) 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=MuCV+em3pVBWQQBtH2eyDfEq+mppeCmvnvzY7k2VLZQP5SJptsOijGm9jRRQHI1Peo l4c7YEY0ubrcWagGqRL2CEKVxb2jhhC58a7jRFSTnbrEKVB8KhhLtQnRCZ44o9xdd+J2 aB8hWbVB6R03sTJxdpWH8yEIGj05yQC7CbPYX8ZK6TpwfjDPWsP0i7WRwEYYwopXqNVA RIwrS+q01KzGwzzeuKugUxM9gzQpwscuqJb2JmqYwkLPmmoxI2366uyMc2ZgDpqfHuXw 62FMc4Grl2A6FFjq1HZLSM2CcVsRXMsLPZoCH0GM6A0etwRVFy0fk2p8RFMu/ReuoibM 0cbQ== X-Gm-Message-State: ABUngvf1D3bclVdLHMqCLD/p+Qfx7bET9ToorFxnrpiWcDJO5toJojMjElvdPY+3qJS4lvFhR+Y= X-Received: by 10.25.87.135 with SMTP id l129mr5195349lfb.174.1477297492531; Mon, 24 Oct 2016 01:24:52 -0700 (PDT) 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 y131sm2849878lfd.26.2016.10.24.01.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 01:24:51 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Mon, 24 Oct 2016 11:24:01 +0200 Message-Id: <1477301053-35938-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477301053-35938-1-git-send-email-christophe.milard@linaro.org> References: <1477301053-35938-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv4 04/16] 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 }