Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dr_get_next_ul() - Find next populated entry.*@idr: IDR handle.*@nextid: Pointer to an ID.* Returns the next populated entry in the tree with an ID greater than* or equal to the value pointed to by @nextid. On exit, @nextid is updated

Proto:void *idr_get_next_ul(struct idr *idr, unsigned long *nextid)

Type:void

Parameter:

TypeParameterName
struct idr *idr
unsigned long *nextid
230  __rcu * slot
231  void * entry = NULL
232  base = idr_base
233  id = nextid
235  id = If id < base Then 0 Else id - base
237  entry = Dependency order vs. p above. ( * slot)
238  If Not entry Then Continue
240  If Not xa_is_internal() - Is the entry an internal entry?*@entry: XArray entry.* Context: Any context.* Return: %true if the entry is an internal entry. Then Break
242  If slot != xa_head && Not xa_is_retry() - Is the entry a retry entry?*@entry: Entry retrieved from the XArray* Return: %true if the entry is a retry entry. Then Break
244  slot = adix_tree_iter_retry - retry this chunk of the iteration*@iter: iterator state* If we iterate over a tree protected only by the RCU lock, a race* against deletion or creation may result in seeing a slot for which* radix_tree_deref_retry() returns true
246  If Not slot Then Return NULL
249  nextid = index + base
250  Return entry
Caller
NameDescribe
idr_get_nextdr_get_next() - Find next populated entry.*@idr: IDR handle.*@nextid: Pointer to an ID.* Returns the next populated entry in the tree with an ID greater than* or equal to the value pointed to by @nextid. On exit, @nextid is updated