[API-NEXT,v2,1/1] api: pool: Return address range for pool objects

Message ID 1507626016-15929-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • API: pool: Return address range for pool objects
Related show

Commit Message

Github ODP bot Oct. 10, 2017, 9 a.m.
From: Sachin Saxena <sachin.saxena@nxp.com>


Signed-off-by: Sachin Saxena <sachin.saxena@linaro.org>

---
/** Email created from pull request 200 (sachin-saxena:api-next)
 ** https://github.com/Linaro/odp/pull/200
 ** Patch: https://github.com/Linaro/odp/pull/200.patch
 ** Base sha: bf803098eb1518dfb9e719071256fe22700b8c72
 ** Merge commit sha: 710865cc25d786417647d7cb3ca9c023be2584fc
 **/
 include/odp/api/spec/pool.h | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 221798ee8..969d74113 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -290,10 +290,16 @@  odp_pool_t odp_pool_lookup(const char *name);
 /**
  * Pool information struct
  * Used to get information about a pool.
+ * @note The difference between end_addr & start_addr
+ * will result in buffers address range belong to this pool.
  */
 typedef struct odp_pool_info_t {
 	const char *name;          /**< pool name */
 	odp_pool_param_t params;   /**< pool parameters */
+	/** Minimum address of any packet contained in this pool */
+	uintptr_t start_addr;
+	/** Maximum address of any packet contained in this pool */
+	uintptr_t end_addr;
 } odp_pool_info_t;
 
 /**