---
name: "idr_find"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/idr_find"
---

# idr\_find(9)

return pointer for given id

## NAME

idr\_find - return pointer for given id

## SYNOPSIS

**void \* idr\_find(struct idr \*** *idp***, int** *id***);**

## ARGUMENTS

*idp*

idr handle

*id*

lookup key

## DESCRIPTION

Return the pointer given the id it has been registered with. A **NULL** return indicates that *id* is not valid or you passed **NULL** in **idr\_get\_new**.

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

## COPYRIGHT
