|IDR_REPLACE(9)||Basic Kernel Library Functions||IDR_REPLACE(9)|
idr_replace - replace pointer for given id
void * idr_replace(struct idr * idp, void * ptr, int id);
Replace the pointer registered with an id and return the old value. A -ENOENT return indicates that id was not found. A -EINVAL return indicates that id was not within valid constraints.
The caller must serialize with writers.
|January 2017||Kernel Hackers Manual 4.8.|