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        */
 
 /**
  * Shared memory block info
-- 
2.7.4

Reply via email to