'\" t .\" Title: idr_get_next .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Basic Kernel Library Functions .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "IDR_GET_NEXT" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Basic Kernel Library Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" idr_get_next \- Find next populated entry .SH "SYNOPSIS" .HP \w'void\ *\ idr_get_next('u .BI "void * idr_get_next(struct\ idr\ *\ " "idr" ", int\ *\ " "nextid" ");" .SH "ARGUMENTS" .PP \fIstruct idr * idr\fR .RS 4 idr handle .RE .PP \fIint * nextid\fR .RS 4 Pointer to lowest possible ID to return .RE .SH "DESCRIPTION" .PP Returns the next populated entry in the tree with an ID greater than or equal to the value pointed to by \fInextid\fR\&. On exit, \fInextid\fR is updated to the ID of the found value\&. To use in a loop, the value pointed to by nextid must be incremented by the user\&. .SH "COPYRIGHT" .br