函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_iter_tags

函数原型:static void set_iter_tags(struct radix_tree_iter *iter, struct radix_tree_node *node, unsigned offset, unsigned tag)

返回类型:void

参数:

类型参数名称
struct radix_tree_iter *iter
struct radix_tree_node *node
unsignedoffset
unsignedtag
1124  tag_long等于offsetBITS_PER_LONG
1125  tag_bit等于offset取模BITS_PER_LONG
1127  如果非node
1128  tags等于1
1129  返回
1132  tags等于tags[tag][tag_long]右移tag_bit
1135  如果tag_long小于RADIX_TREE_TAG_LONGS减1则
1137  如果tag_bittags或等于tags[tag][tag_long + 1]左移BITS_PER_LONGtag_bit
1141  next_index等于__radix_tree_iter_add(iter, BITS_PER_LONG)
调用者
名称描述
radix_tree_next_chunk在radix树中找到下一个块的迭代
idr_get_free