* [dpdk-dev] [PATCH] mempool: add missing api parameter documentation
@ 2015-06-23 12:07 John McNamara
2015-06-23 15:04 ` Olivier MATZ
0 siblings, 1 reply; 4+ messages in thread
From: John McNamara @ 2015-06-23 12:07 UTC (permalink / raw)
To: dev
Added Doxygen @param for missing API parameter in
rte_mempool_obj_iter(), to fix Doxygen warning. Also added
minor grammar fixes to that function documentation.
Signed-off-by: John McNamara <john.mcnamara@intel.com>
---
lib/librte_mempool/rte_mempool.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h
index a8054e1..f16019a 100644
--- a/lib/librte_mempool/rte_mempool.h
+++ b/lib/librte_mempool/rte_mempool.h
@@ -393,11 +393,11 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
*
* Iterate across objects of the given size and alignment in the
* provided chunk of memory. The given memory buffer can consist of
- * disjoint physical pages.
+ * disjointed physical pages.
*
- * For each object, calls the provided callback (if any). This function
- * is used to populate mempool, walk through all elements of the
- * mempool, estimate how many elements of the given size could be
+ * For each object, call the provided callback (if any). This function
+ * is used to populate a mempool, or walk through all the elements of a
+ * mempool, or estimate how many elements of the given size could be
* created in the given memory buffer.
*
* @param vaddr
@@ -406,6 +406,8 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
* Maximum number of objects to iterate through.
* @param elt_sz
* Size of each object.
+ * @param align
+ * Alignment of each object.
* @param paddr
* Array of physical addresses of the pages that comprises given memory
* buffer.
@@ -421,7 +423,6 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
* @return
* Number of objects iterated through.
*/
-
uint32_t rte_mempool_obj_iter(void *vaddr,
uint32_t elt_num, size_t elt_sz, size_t align,
const phys_addr_t paddr[], uint32_t pg_num, uint32_t pg_shift,
--
1.8.1.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mempool: add missing api parameter documentation
2015-06-23 12:07 [dpdk-dev] [PATCH] mempool: add missing api parameter documentation John McNamara
@ 2015-06-23 15:04 ` Olivier MATZ
2015-06-23 15:46 ` Thomas Monjalon
2015-06-23 16:01 ` Thomas Monjalon
0 siblings, 2 replies; 4+ messages in thread
From: Olivier MATZ @ 2015-06-23 15:04 UTC (permalink / raw)
To: John McNamara, dev
On 06/23/2015 02:07 PM, John McNamara wrote:
> Added Doxygen @param for missing API parameter in
> rte_mempool_obj_iter(), to fix Doxygen warning. Also added
> minor grammar fixes to that function documentation.
>
> Signed-off-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
> ---
> lib/librte_mempool/rte_mempool.h | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h
> index a8054e1..f16019a 100644
> --- a/lib/librte_mempool/rte_mempool.h
> +++ b/lib/librte_mempool/rte_mempool.h
> @@ -393,11 +393,11 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
> *
> * Iterate across objects of the given size and alignment in the
> * provided chunk of memory. The given memory buffer can consist of
> - * disjoint physical pages.
> + * disjointed physical pages.
> *
> - * For each object, calls the provided callback (if any). This function
> - * is used to populate mempool, walk through all elements of the
> - * mempool, estimate how many elements of the given size could be
> + * For each object, call the provided callback (if any). This function
> + * is used to populate a mempool, or walk through all the elements of a
> + * mempool, or estimate how many elements of the given size could be
> * created in the given memory buffer.
> *
> * @param vaddr
> @@ -406,6 +406,8 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
> * Maximum number of objects to iterate through.
> * @param elt_sz
> * Size of each object.
> + * @param align
> + * Alignment of each object.
> * @param paddr
> * Array of physical addresses of the pages that comprises given memory
> * buffer.
> @@ -421,7 +423,6 @@ typedef void (*rte_mempool_obj_iter_t)(void * /*obj_iter_arg*/,
> * @return
> * Number of objects iterated through.
> */
> -
> uint32_t rte_mempool_obj_iter(void *vaddr,
> uint32_t elt_num, size_t elt_sz, size_t align,
> const phys_addr_t paddr[], uint32_t pg_num, uint32_t pg_shift,
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mempool: add missing api parameter documentation
2015-06-23 15:04 ` Olivier MATZ
@ 2015-06-23 15:46 ` Thomas Monjalon
2015-06-23 16:01 ` Thomas Monjalon
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-06-23 15:46 UTC (permalink / raw)
To: John McNamara; +Cc: dev
2015-06-23 17:04, Olivier MATZ:
> On 06/23/2015 02:07 PM, John McNamara wrote:
> > Added Doxygen @param for missing API parameter in
> > rte_mempool_obj_iter(), to fix Doxygen warning. Also added
> > minor grammar fixes to that function documentation.
> >
> > Signed-off-by: John McNamara <john.mcnamara@intel.com>
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] mempool: add missing api parameter documentation
2015-06-23 15:04 ` Olivier MATZ
2015-06-23 15:46 ` Thomas Monjalon
@ 2015-06-23 16:01 ` Thomas Monjalon
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-06-23 16:01 UTC (permalink / raw)
To: John McNamara; +Cc: dev
2015-06-23 17:04, Olivier MATZ:
> On 06/23/2015 02:07 PM, John McNamara wrote:
> > Added Doxygen @param for missing API parameter in
> > rte_mempool_obj_iter(), to fix Doxygen warning. Also added
> > minor grammar fixes to that function documentation.
> >
> > Signed-off-by: John McNamara <john.mcnamara@intel.com>
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-23 16:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 12:07 [dpdk-dev] [PATCH] mempool: add missing api parameter documentation John McNamara
2015-06-23 15:04 ` Olivier MATZ
2015-06-23 15:46 ` Thomas Monjalon
2015-06-23 16:01 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).