From patchwork Wed Oct 19 15:29:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 78281 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp310184qge; Wed, 19 Oct 2016 08:34:00 -0700 (PDT) X-Received: by 10.55.48.85 with SMTP id w82mr6614962qkw.142.1476891240491; Wed, 19 Oct 2016 08:34:00 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o128si24659068qkf.325.2016.10.19.08.34.00; Wed, 19 Oct 2016 08:34:00 -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 059B260E0F; Wed, 19 Oct 2016 15:34:00 +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 3DE606171F; Wed, 19 Oct 2016 15:30:29 +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 92BC56170D; Wed, 19 Oct 2016 15:30:10 +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 D86F260E61 for ; Wed, 19 Oct 2016 15:30:06 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id x79so31494244lff.0 for ; Wed, 19 Oct 2016 08:30:06 -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=yGXSSONbguPEnejZMge0NOghTiWEZaWs3leEjI4Uojk=; b=Oy2jXUBK/YaSSjrxKf477f6c+azzW7r4s3lxOt5YTOgMnvq6ws/4744umYaxNJgy8k 6Sw+j6fJOUg8kaqTw4RbBSO2NecwnxbXyJZDtrWlCVIiWVm2YGDa6CGiNGkY+OH+sbRD tXSuXnmh/wxLnmRzCnEd9qf53hXx93TTSELdFMazwpzPLzkfx899MPAc4gyw8VRlwT6V 5+5k/Q+RQ5e+t7y163D7lBpkj5a3SAEZzDFWHNVuKOb6laEKwC2wfI6KJyLY3JlJkL2F 0LqZ8UFe338WQGtRTYoa/SGslD4DmF+k2Fzgr5aBPoqJUQWVA6bSLUWmRzw1dBvop2i4 Gz8Q== X-Gm-Message-State: AA6/9Rk+EliY6ivqOgHpAcLmN8lHy/Tjrs8XbZP7X74Fk6OOYPjw+3chp6oq95Yqt61K1l2egKs= X-Received: by 10.25.138.215 with SMTP id m206mr6108281lfd.30.1476891005650; Wed, 19 Oct 2016 08:30:05 -0700 (PDT) Received: from localhost.localdomain (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id w65sm10805536lff.16.2016.10.19.08.30.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 08:30:05 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Wed, 19 Oct 2016 17:29:42 +0200 Message-Id: <1476890991-4693-8-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476890991-4693-1-git-send-email-christophe.milard@linaro.org> References: <1476890991-4693-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 07/16] api: shm: add flag to lock memory 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" The ODP_SHM_LOCK flag is created: when set (at odp_shm_reserve()), this flag locks the reserved memory (prevent swapping) Signed-off-by: Christophe Milard --- include/odp/api/spec/shared_memory.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h index fefb5d6..fe683d4 100644 --- a/include/odp/api/spec/shared_memory.h +++ b/include/odp/api/spec/shared_memory.h @@ -48,6 +48,7 @@ extern "C" { #define ODP_SHM_SW_ONLY 0x1 /**< Application SW only, no HW access */ #define ODP_SHM_PROC 0x2 /**< Share with external processes */ #define ODP_SHM_SINGLE_VA 0x4 /**< guarantee unique addr on all threads*/ +#define ODP_SHM_LOCK 0x8 /**< prevent swapping this memory */ /** * Shared memory block info