---
name: "idr_get_next"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/idr_get_next"
---

# idr\_get\_next(9)

lookup next object of id to given id.

## NAME

idr\_get\_next - lookup next object of id to given id.

## SYNOPSIS

**void \* idr\_get\_next(struct idr \*** *idp***, int \*** *nextidp***);**

## ARGUMENTS

*idp*

idr handle

*nextidp*

pointer to lookup key

## DESCRIPTION

Returns pointer to registered object with id, which is next number to given id. After being looked up, \**nextidp* will be updated for the next iteration.

This function can be called under **rcu\_read\_lock**, given that the leaf pointers lifetimes are correctly managed.

## COPYRIGHT
