The ODP_SHM_SINGLE_VA flag is created: when set (at odp_shm_reserve()),
this flag guarantees that all ODP threads sharing this memory
block will see the block at the same address (regadless of ODP
thread type -pthread vs process- or fork time)

Signed-off-by: Christophe Milard <christophe.mil...@linaro.org>
---
 include/odp/api/spec/shared_memory.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/odp/api/spec/shared_memory.h 
b/include/odp/api/spec/shared_memory.h
index 8c76807..fefb5d6 100644
--- a/include/odp/api/spec/shared_memory.h
+++ b/include/odp/api/spec/shared_memory.h
@@ -45,10 +45,9 @@ extern "C" {
 /*
  * Shared memory flags
  */
-
-/* Share level */
-#define ODP_SHM_SW_ONLY 0x1 /**< Application SW only, no HW access */
-#define ODP_SHM_PROC    0x2 /**< Share with external processes */
+#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*/
 
 /**
  * Shared memory block info
-- 
2.7.4

Reply via email to