table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
| IDR_REPLACE(9) | Basic Kernel Library Functions | IDR_REPLACE(9) |
NAME¶
idr_replace - replace pointer for given idSYNOPSIS¶
void *
idr_replace(struct idr * idp,
void * ptr, int id);
ARGUMENTS¶
idpidr handle
ptr
pointer you want associated with the id
id
lookup key
DESCRIPTION¶
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.COPYRIGHT¶
| February 2017 | Kernel Hackers Manual 3.16 |