aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/pool.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2016-10-14 11:49:08 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-01-12 17:57:42 +0300
commitad7f8f4ea11a8e40d853cd9b2b0bc3e6f7876a8b (patch)
tree756fd398747cba8c623a45431e4a0d9bbc4ef89f /include/odp/api/spec/pool.h
parent50cfbff244a1fa29314520eb9ca9bdf5df445df6 (diff)
api: improve name argument definitions in *_create() functions
The current APIs don't always define valid name argument values. Fix this by stating when NULL is a valid value and when the name string doesn't have to be unique. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/spec/pool.h')
-rw-r--r--include/odp/api/spec/pool.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index c80c98a25..a1331e396 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -220,14 +220,12 @@ typedef struct odp_pool_param_t {
/**
* Create a pool
*
- * This routine is used to create a pool. It take two arguments: the optional
- * name of the pool to be created and a parameter struct that describes the
- * pool to be created. If a name is not specified the result is an anonymous
- * pool that cannot be referenced by odp_pool_lookup().
- *
- * @param name Name of the pool, max ODP_POOL_NAME_LEN-1 chars.
- * May be specified as NULL for anonymous pools.
+ * This routine is used to create a pool. The use of pool name is optional.
+ * Unique names are not required. However, odp_pool_lookup() returns only a
+ * single matching pool.
*
+ * @param name Name of the pool or NULL. Maximum string length is
+ * ODP_POOL_NAME_LEN.
* @param params Pool parameters.
*
* @return Handle of the created pool
@@ -256,11 +254,8 @@ int odp_pool_destroy(odp_pool_t pool);
*
* @param name Name of the pool
*
- * @return Handle of found pool
+ * @return Handle of the first matching pool
* @retval ODP_POOL_INVALID Pool could not be found
- *
- * @note This routine cannot be used to look up an anonymous pool (one created
- * with no name).
*/
odp_pool_t odp_pool_lookup(const char *name);