函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:calculate_count

函数原型:static int calculate_count(struct xarray *root, struct radix_tree_node *node, void __rcu **slot, void *item, void *old)

返回类型:int

参数:

类型参数名称
struct xarray *root
struct radix_tree_node *node
void __rcu **slot
void *item
void *old
864  如果is_idr(root)则
865  offset等于get_slot_offset(node, slot)
866  free等于node_tag_get(root, node, The IDR API does not expose the tagging functionality of the radix tree* to users. Use tag 0 to track whether a node has free space below it., offset)
867  如果非free则返回:0
869  如果非old则返回:1
872  返回:非非item减非非old
调用者
名称描述
__radix_tree_replace