idr_for_each — iterate through all stored pointers
|const struct idr * idr,|
|void * data|
const struct idr * idr
int (*)(int id, void *p, void *data) fn
function to be called for each pointer
void * data
data passed to callback function
The callback function will be called for each entry in
the id, the pointer and the data pointer passed to this function.
fn returns anything other than
0, the iteration stops and that
value is returned from this function.
idr_for_each can be called concurrently with
idr_remove if protected by RCU. Newly added entries may not be
seen and deleted entries may be seen, but adding and removing entries
will not cause other entries to be skipped, nor spurious ones to be seen.