Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\radix-tree.c Create Date:2022-07-28 06:13:07
Last Modify:2022-05-21 10:04:37 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_iter_tags

Proto:static void set_iter_tags(struct radix_tree_iter *iter, struct radix_tree_node *node, unsigned offset, unsigned tag)

Type:void

Parameter:

TypeParameterName
struct radix_tree_iter *iter
struct radix_tree_node *node
unsignedoffset
unsignedtag
1124  tag_long = offset / BITS_PER_LONG
1125  tag_bit = offset % BITS_PER_LONG
1127  If Not node Then
1128  tags = 1
1129  Return
1132  tags = tags[tag][tag_long] >> tag_bit
1135  If tag_long < RADIX_TREE_TAG_LONGS - 1 Then
1137  If tag_bit Then tags |= tags[tag][tag_long + 1] << BITS_PER_LONG - tag_bit
1141  next_index = __radix_tree_iter_add(iter, BITS_PER_LONG)
Caller
NameDescribe
radix_tree_next_chunkadix_tree_next_chunk - find next chunk of slots for iteration*@root: radix tree root*@iter: iterator state*@flags: RADIX_TREE_ITER_* flags and tag index* Returns: pointer to chunk first slot, or NULL if iteration is over
idr_get_free