IDR_FIND

Section: Basic Kernel Library Functions (9)
Updated: February 2011
Index Return to Main Contents
 

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