Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:calculate_count

Proto:static int calculate_count(struct xarray *root, struct radix_tree_node *node, void __rcu **slot, void *item, void *old)

Type:int

Parameter:

TypeParameterName
struct xarray *root
struct radix_tree_node *node
void __rcu **slot
void *item
void *old
864  If is_idr(root) Then
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  If Not free Then Return 0
869  If Not old Then Return 1
872  Return Not Not item - Not Not old
Caller
NameDescribe
__radix_tree_replace