Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -589,7 +589,8 @@ EXPORT_SYMBOL(idr_for_each);
 * @nextidp:  pointer to lookup key
 * @nextidp:  pointer to lookup key
 *
 *
 * Returns pointer to registered object with id, which is next number to
 * 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)
void *idr_get_next(struct idr *idp, int *nextidp)