diff mbox

[API-NEXT,PATCHv8,08/15] linux-gen: shm: new ODP_SHM_SINGLE_VA flag implementation

Message ID 1479975872-4945-9-git-send-email-christophe.milard@linaro.org
State Superseded
Headers show

Commit Message

Christophe Milard Nov. 24, 2016, 8:24 a.m. UTC
This flag guarentess the unicity the the block address on all ODP threads.
The patch just exposes the _ODP_ISHM_SINGLE_VA flag of the internal memory
allocator, ishm.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

---
 platform/linux-generic/odp_shared_memory.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.7.4
diff mbox

Patch

diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c
index 9e916e9..2377f16 100644
--- a/platform/linux-generic/odp_shared_memory.c
+++ b/platform/linux-generic/odp_shared_memory.c
@@ -43,6 +43,7 @@  odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align,
 
 	/* set internal ishm flags according to API flags: */
 	flgs |= (flags & ODP_SHM_PROC) ? _ODP_ISHM_EXPORT : 0;
+	flgs |= (flags & ODP_SHM_SINGLE_VA) ? _ODP_ISHM_SINGLE_VA : 0;
 
 	/* all mem reserved through this interface is requested to be locked: */
 	flgs |= (flags & _ODP_ISHM_LOCK);