函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\radix-tree.c Create Date:2022-07-27 07:10:25
Last Modify:2022-05-21 10:04:37 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:adix_tree_gang_lookup_tag - perform multiple lookup on a radix tree* based on a tag*@root: radix tree root*@results: where the results of the lookup are placed*@first_index: start the lookup from this key*@max_items: place up to this many items at

函数原型:unsigned int radix_tree_gang_lookup_tag(const struct xarray *root, void **results, unsigned long first_index, unsigned int max_items, unsigned int tag)

返回类型:unsigned int

参数:

类型参数名称
const struct xarray *root
void **results
unsigned longfirst_index
unsigned intmax_items
unsigned inttag
1317  __rcuslot
1318  ret等于0
1320  如果此条件成立可能性小(为编译器优化)(!max_items)则返回:0
1324  results[ret]等于Dependency order vs. p above. ( * slot)
1325  如果非results[ret]则继续下一循环
1327  如果radix_tree_is_internal_node(results[ret])则
1328  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
1329  继续下一循环
1331  如果ret先自加恒等于max_items退出
1335  返回:ret