aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2023-01-13 17:44:53 +0200
committerMatias Elo <matias.elo@nokia.com>2023-04-12 13:38:07 +0300
commit7ff4f7e7727bef783cc517367207c8dea4116729 (patch)
tree7ae54af6a38b227a900d8228d1164fc752c8b43b /include
parente20a0b3ac99973fe8051d40f405c924a6f0cf50c (diff)
api: pool: clarify that pool to be destroyed must not be in use
Clarify that the pool to be destroyed with odp_pool_destroy() must not be in use. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/pool.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index b0a57a36e..a72dcd3af 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -59,15 +59,16 @@ odp_pool_t odp_pool_create(const char *name, const odp_pool_param_t *param);
/**
* Destroy a pool previously created by odp_pool_create()
*
+ * This routine destroys a previously created pool, and will destroy any
+ * internal shared memory objects associated with the pool. The pool must not
+ * be in use (in pktio, classifier, timer, etc.) when calling this function.
+ * Results are undefined if an attempt is made to destroy a pool that contains
+ * allocated or otherwise active buffers.
+ *
* @param pool Handle of the pool to be destroyed
*
* @retval 0 Success
* @retval -1 Failure
- *
- * @note This routine destroys a previously created pool, and will destroy any
- * internal shared memory objects associated with the pool. Results are
- * undefined if an attempt is made to destroy a pool that contains allocated
- * or otherwise active buffers.
*/
int odp_pool_destroy(odp_pool_t pool);