1IDR_REPLACE(9) Basic Kernel Library Functions IDR_REPLACE(9)
2
3
4
6 idr_replace - replace pointer for given id
7
9 void * idr_replace(struct idr * idp, void * ptr, int id);
10
12 idp
13 idr handle
14
15 ptr
16 pointer you want associated with the id
17
18 id
19 lookup key
20
22 Replace the pointer registered with an id and return the old value. A
23 -ENOENT return indicates that id was not found. A -EINVAL return
24 indicates that id was not within valid constraints.
25
26 The caller must serialize with writers.
27
29Kernel Hackers Manual 3.10 June 2019 IDR_REPLACE(9)