Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:adix_tree_tag_set - set a tag on a radix tree node*@root: radix tree root*@index: index key*@tag: tag index* Set the search tag (which must be < RADIX_TREE_MAX_TAGS)* corresponding to @index in the radix tree. From

Proto:void *radix_tree_tag_set(struct xarray *root, unsigned long index, unsigned int tag)

Type:void

Parameter:

TypeParameterName
struct xarray *root
unsigned longindex
unsigned inttag
982  radix_tree_load_root(root, & node, & maxindex)
983  BUG_ON(index > maxindex)
985  When radix_tree_is_internal_node(node) cycle
988  parent = entry_to_node(node)
989  offset = radix_tree_descend(parent, & node, index)
990  BUG_ON(!node)
992  If Not tag_get(parent, tag, offset) Then tag_set(parent, tag, offset)
997  If Not root_tag_get(root, tag) Then root_tag_set(root, tag)
1000  Return node