diff mbox

[PATCHv5,09/19] api: shm: add strong typing handle display function

Message ID 1422938699-12877-10-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 80171b9ba8a64b50220ca7d6d22008b05d1c070d
Headers show

Commit Message

Bill Fischofer Feb. 3, 2015, 4:44 a.m. UTC
Add function odp_shm_to_u64()

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/shared_memory.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/shared_memory.h b/include/odp/api/shared_memory.h
index 5b27b6b..d4445f7 100644
--- a/include/odp/api/shared_memory.h
+++ b/include/odp/api/shared_memory.h
@@ -128,6 +128,19 @@  int odp_shm_info(odp_shm_t shm, odp_shm_info_t *info);
 void odp_shm_print_all(void);
 
 /**
+ * Get printable value for an odp_shm_t
+ *
+ * @param hdl  odp_shm_t handle to be printed
+ * @return     uint64_t value that can be used to print/display this
+ *             handle
+ *
+ * @note This routine is intended to be used for diagnostic purposes
+ * to enable applications to generate a printable value that represents
+ * an odp_shm_t handle.
+ */
+uint64_t odp_shm_to_u64(odp_shm_t hdl);
+
+/**
  * @}
  */