Commit 1458ce16 authored by Naohiro Aota's avatar Naohiro Aota Committed by Jiri Kosina

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: default avatarNaohiro Aota <naota@elisp.net>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ea24ea85
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment