函数逻辑报告

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

函数名称:adix_tree_tag_get - get a tag on a radix tree node*@root: radix tree root*@index: index key*@tag: tag index (< RADIX_TREE_MAX_TAGS)* Return values:* 0: tag not present or not set* 1: tag set* Note that the return value of this function may not be relied

函数原型:int radix_tree_tag_get(const struct xarray *root, unsigned long index, unsigned int tag)

返回类型:int

参数:

类型参数名称
const struct xarray *root
unsigned longindex
unsigned inttag
1096  如果非root_tag_get(root, tag)则返回:0
1099  radix_tree_load_root(root, & node, & maxindex)
1100  如果index大于maxindex则返回:0
1103 radix_tree_is_internal_node(node)循环
1106  parent等于entry_to_node(node)
1107  offset等于radix_tree_descend(parent, & node, index)
1109  如果非tag_get(parent, tag, offset)则返回:0
1111  如果node恒等于RADIX_TREE_RETRY退出
1115  返回:1
调用者
名称描述
idr_replacedr_replace() - replace pointer for given ID
active_cacheline_read_overlap