aboutsummaryrefslogtreecommitdiff
path: root/doc/users-guide
diff options
context:
space:
mode:
authorChristophe Milard <christophe.milard@linaro.org>2016-11-08 10:49:30 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-01-12 17:57:43 +0300
commit63ef9b3714c9410dd1b5a55e3bd50de49f23dfcb (patch)
tree5eb66d12eef13826b074a438e64a1745f494a487 /doc/users-guide
parent4ee154864b47712a45cfdb23ea6c22b46bfb1abf (diff)
doc: shm: defining behaviour when blocks have same name
Defining the reserve and lookup behaviour when multiple blocks are reserved using the same name. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'doc/users-guide')
-rwxr-xr-xdoc/users-guide/users-guide.adoc8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc
index 078dd7ccc..9a427fab5 100755
--- a/doc/users-guide/users-guide.adoc
+++ b/doc/users-guide/users-guide.adoc
@@ -594,7 +594,9 @@ resource.
Blocks of shared memory can be created using the `odp_shm_reserve()` API
call. The call expects a shared memory block name, a block size, an alignment
requirement, and optional flags as parameters. It returns a `odp_shm_t`
-handle. The size and alignment requirement are given in bytes.
+handle. The size and alignment requirement are given in bytes. The provided
+name does not have to be unique, i.e. a given name can be used multiple times,
+when reserving different blocks.
.creating a block of shared memory
[source,c]
@@ -670,7 +672,9 @@ block is to use the `odp_shm_lookup()` API function call.
This nevertheless requires the calling ODP thread to provide the name of the
shared memory block:
`odp_shm_lookup()` will return `ODP_SHM_INVALID` if no shared memory block
-with the provided name is known by ODP.
+with the provided name is known by ODP. When multiple blocks were reserved
+using the same name, the lookup function will return the handle of any
+of these blocks.
.retrieving a block handle and address from another ODP task
[source,c]