On 10/07/16 13:35, Christophe Milard wrote:
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 <christophe.mil...@linaro.org>
---
  include/odp/api/spec/shared_memory.h | 1 +
  1 file changed, 1 insertion(+)

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        */
this patch also should change no create to 16:

#define _ODP_SHM_PROC_NOCREAT 0x4
  /**
   * Shared memory block info

Reply via email to