summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNaohiro Aota <naota@elisp.net>2010-08-27 17:43:46 +0900
committerJiri Kosina <jkosina@suse.cz>2010-08-31 09:43:59 +0200
commit1458ce166c1b333ecbaf8caa9f4f54eab3a522a7 (patch)
tree3375dc429c3c637a05f1c185d767bf911d4e92ee /lib
parentea24ea850bcd7dd5f0994de2cf99ace10c4484cc (diff)
idr: describe how nextidp works in idr_get_next().
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/idr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/idr.c b/lib/idr.c
index fb86a675dcf..5e0966be0f7 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -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)