diff options
author | Yan Sonming <yan.songming@linaro.org> | 2014-11-20 02:12:48 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-22 15:54:19 +0300 |
commit | ce8ca2b5b0c37dd7b3b24e2d2a9cb89a575a60e7 (patch) | |
tree | 29f6a8b07808d15fe5e967860349a69eb03fb3df /platform/linux-generic/include | |
parent | f2b27fa3a37fbed61825e8f8a942c8c2206a5ab9 (diff) |
linux-generic: odp_shared_memory.c: implement func odp_shm_free
New API implementing odp_shm_free to match the odp_shm_reserve.
Fix retval for odp_shm_free.
Signed-off-by: Yan Songming <yan.songming@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include')
-rw-r--r-- | platform/linux-generic/include/api/odp_shared_memory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/linux-generic/include/api/odp_shared_memory.h b/platform/linux-generic/include/api/odp_shared_memory.h index ff6f9a912..26e208b9a 100644 --- a/platform/linux-generic/include/api/odp_shared_memory.h +++ b/platform/linux-generic/include/api/odp_shared_memory.h @@ -80,8 +80,9 @@ odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align, * * @param[in] shm Block handle * - * @retval 0 for success - * @retval 1 on failure + * @retval 0 if the handle is already free + * @retval 0 if the handle free succeeds + * @retval -1 on failure to free the handle */ int odp_shm_free(odp_shm_t shm); |