Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\idr.c Create Date:2022-07-28 06:13:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dr_for_each() - Iterate through all stored pointers

Proto:int idr_for_each(const struct idr *idr, int (*fn)(int id, void *p, void *data), void *data)

Type:int

Parameter:

TypeParameterName
const struct idr *idr
int (*fn
void *data
199  __rcu * slot
200  base = idr_base
204  id = index + base
206  If WARN_ON_ONCE(id > INT_MAX) Then Break
208  ret = fn(id, Dependency order vs. p above. ( * slot), data)
209  If ret Then Return ret
213  Return 0