Skip to content

Commit

Permalink
idr: describe how nextidp works in idr_get_next().
Browse files Browse the repository at this point in the history
It was unclear in original kernel-doc how nextidp worked in
idr_get_next(). Let's describe it.

Signed-off-by: Naohiro Aota <naota@elisp.net>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
naota authored and Jiri Kosina committed Aug 31, 2010
1 parent ea24ea8 commit 1458ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/idr.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ EXPORT_SYMBOL(idr_for_each);
* @nextidp: pointer to lookup key
*
* Returns pointer to registered object with id, which is next number to
* given id.
* given id. After being looked up, *@nextidp will be updated for the next
* iteration.
*/

void *idr_get_next(struct idr *idp, int *nextidp)
Expand Down

0 comments on commit 1458ce1

Please sign in to comment.