diff mbox

[v2] odp_shared_memory.h: add doxygen in/out

Message ID 1415641647-32957-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 7e60f114ad5cb979aa2f35a0b0046c2067dada86
Headers show

Commit Message

Mike Holmes Nov. 10, 2014, 5:47 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 .../linux-generic/include/api/odp_shared_memory.h  | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

Comments

Maxim Uvarov Nov. 12, 2014, 11:07 p.m. UTC | #1
On 11/10/2014 08:47 PM, Mike Holmes wrote:
> + * @return A handle to the block if it is found by name
> + * @retval #ODP_SHM_INVALID if the block is not found
shouldn't it be simple ODP_SHM_INVALID ? Looks like copy-paste error.

Maxim.
Mike Holmes Nov. 13, 2014, 12:03 a.m. UTC | #2
On 12 November 2014 18:07, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> On 11/10/2014 08:47 PM, Mike Holmes wrote:
>
>> + * @return A handle to the block if it is found by name
>> + * @retval #ODP_SHM_INVALID if the block is not found
>>
> shouldn't it be simple ODP_SHM_INVALID ? Looks like copy-paste error.
>
> That makes it a link to the actual definition, it should be there.  in
doxygen if it does not recognise the macro "#" informs it to make the link
to the macro of the same name.

> Maxim.
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov Nov. 13, 2014, 12:21 p.m. UTC | #3
Ok, merged!

Maxim.

On 11/13/2014 03:03 AM, Mike Holmes wrote:
>
>
> On 12 November 2014 18:07, Maxim Uvarov <maxim.uvarov@linaro.org 
> <mailto:maxim.uvarov@linaro.org>> wrote:
>
>     On 11/10/2014 08:47 PM, Mike Holmes wrote:
>
>         + * @return A handle to the block if it is found by name
>         + * @retval #ODP_SHM_INVALID if the block is not found
>
>     shouldn't it be simple ODP_SHM_INVALID ? Looks like copy-paste error.
>
> That makes it a link to the actual definition, it should be there.  in 
> doxygen if it does not recognise the macro "#" informs it to make the 
> link to the macro of the same name.
>
>     Maxim.
>
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>
>
> -- 
> *Mike Holmes*
> Linaro  Sr Technical Manager
> LNG - ODP
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_shared_memory.h b/platform/linux-generic/include/api/odp_shared_memory.h
index 1a59824..ff6f9a9 100644
--- a/platform/linux-generic/include/api/odp_shared_memory.h
+++ b/platform/linux-generic/include/api/odp_shared_memory.h
@@ -1,4 +1,4 @@ 
-/* Copyright (c) 2013, Linaro Limited
+/* Copyright (c) 2013-2014, Linaro Limited
  * All rights reserved.
  *
  * SPDX-License-Identifier:     BSD-3-Clause
@@ -61,10 +61,11 @@  typedef struct odp_shm_info_t {
 /**
  * Reserve a contiguous block of shared memory
  *
- * @param name   Name of the block (maximum ODP_SHM_NAME_LEN - 1 chars)
- * @param size   Block size in bytes
- * @param align  Block alignment in bytes
- * @param flags  Shared mem parameter flags (ODP_SHM_*). Default value is 0.
+ * @param[in] name   Name of the block (maximum ODP_SHM_NAME_LEN - 1 chars)
+ * @param[in] size   Block size in bytes
+ * @param[in] align  Block alignment in bytes
+ * @param[in] flags  Shared memory parameter flags (ODP_SHM_*).
+ *                   Default value is 0.
  *
  * @return Pointer to the reserved block, or NULL
  */
@@ -75,7 +76,7 @@  odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align,
  * Free a contiguous block of shared memory
  *
  * Frees a previously reserved block of shared memory.
- * @note Freeing memory that is in use will result in UNDEFINED behaviour.
+ * @note Freeing memory that is in use will result in UNDEFINED behavior
  *
  * @param[in] shm Block handle
  *
@@ -87,9 +88,10 @@  int odp_shm_free(odp_shm_t shm);
 /**
  * Lookup for a block of shared memory
  *
- * @param name   Name of the block
+ * @param[in] name   Name of the block
  *
- * @return Pointer to the block, or NULL
+ * @return A handle to the block if it is found by name
+ * @retval #ODP_SHM_INVALID if the block is not found
  */
 odp_shm_t odp_shm_lookup(const char *name);
 
@@ -97,7 +99,7 @@  odp_shm_t odp_shm_lookup(const char *name);
 /**
  * Shared memory block address
  *
- * @param shm   Block handle
+ * @param[in] shm   Block handle
  *
  * @return Memory block address, or NULL on error
  */
@@ -107,8 +109,8 @@  void *odp_shm_addr(odp_shm_t shm);
 /**
  * Shared memory block info
  *
- * @param shm   Block handle
- * @param info  Block info pointer for output
+ * @param[in]  shm   Block handle
+ * @param[out] info  Block info pointer for output
  *
  * @return 0 on success, otherwise non-zero
  */