Commit 1458ce166c1b333ecbaf8caa9f4f54eab3a522a7
Committed by
Jiri Kosina
1 parent
ea24ea850b
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
lib/idr.c
... | ... | @@ -589,7 +589,8 @@ |
589 | 589 | * @nextidp: pointer to lookup key |
590 | 590 | * |
591 | 591 | * Returns pointer to registered object with id, which is next number to |
592 | - * given id. | |
592 | + * given id. After being looked up, *@nextidp will be updated for the next | |
593 | + * iteration. | |
593 | 594 | */ |
594 | 595 | |
595 | 596 | void *idr_get_next(struct idr *idp, int *nextidp) |