diff mbox

[API-NEXT,PATCHv3,07/16] api: shm: add flag to lock memory

Message ID 1476890991-4693-8-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard Oct. 19, 2016, 3:29 p.m. UTC
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.milard@linaro.org>

---
 include/odp/api/spec/shared_memory.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.7.4
diff mbox

Patch

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