aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2014-12-15 19:09:52 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-12-16 01:26:41 +0300
commitcb973de326cf989b177edb6a4ec402c97953718c (patch)
tree9ecb4b865819e699cd0b10519ef953f4510bc5bc
parent28e82826152d2444ab8d5a8244a76f71878f114f (diff)
api: buffer: update documentation comments
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--platform/linux-generic/include/api/odp_buffer.h4
-rw-r--r--platform/linux-generic/include/api/odp_buffer_pool.h13
2 files changed, 11 insertions, 6 deletions
diff --git a/platform/linux-generic/include/api/odp_buffer.h b/platform/linux-generic/include/api/odp_buffer.h
index a7036e87a..3c230355c 100644
--- a/platform/linux-generic/include/api/odp_buffer.h
+++ b/platform/linux-generic/include/api/odp_buffer.h
@@ -62,13 +62,13 @@ int odp_buffer_type(odp_buffer_t buf);
#define ODP_BUFFER_TYPE_PACKET 2 /**< Packet buffer */
#define ODP_BUFFER_TYPE_TIMEOUT 3 /**< Timeout buffer */
-
/**
* Tests if buffer is valid
*
* @param buf Buffer handle
*
- * @return 1 if valid, otherwise 0
+ * @retval 1 Buffer handle represents a valid buffer.
+ * @retval 0 Buffer handle does not represent a valid buffer.
*/
int odp_buffer_is_valid(odp_buffer_t buf);
diff --git a/platform/linux-generic/include/api/odp_buffer_pool.h b/platform/linux-generic/include/api/odp_buffer_pool.h
index e6bf5a74a..4da5f84ac 100644
--- a/platform/linux-generic/include/api/odp_buffer_pool.h
+++ b/platform/linux-generic/include/api/odp_buffer_pool.h
@@ -100,7 +100,11 @@ int odp_buffer_pool_destroy(odp_buffer_pool_t pool);
*
* @param name Name of the pool
*
- * @return Buffer pool handle, or ODP_BUFFER_POOL_INVALID if not found.
+ * @return Handle of found buffer pool
+ * @retval ODP_BUFFER_POOL_INVALID Buffer pool could not be found
+ *
+ * @note This routine cannot be used to look up an anonymous pool (one created
+ * with no name).
*/
odp_buffer_pool_t odp_buffer_pool_lookup(const char *name);
@@ -138,21 +142,22 @@ int odp_buffer_pool_info(odp_buffer_pool_t pool,
*
* @param pool Pool handle
*
+ * @note This routine writes implementation-defined information about the
+ * specified buffer pool to the ODP log. The intended use is for debugging.
*/
void odp_buffer_pool_print(odp_buffer_pool_t pool);
-
/**
* Buffer alloc
*
* The validity of a buffer can be cheked at any time with odp_buffer_is_valid()
* @param pool Pool handle
*
- * @return Buffer handle or ODP_BUFFER_INVALID
+ * @return Handle of allocated buffer
+ * @retval ODP_BUFFER_INVALID Buffer could not be allocated
*/
odp_buffer_t odp_buffer_alloc(odp_buffer_pool_t pool);
-
/**
* Buffer free
*