函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__radix_tree_replace

函数原型:void __radix_tree_replace(struct xarray *root, struct radix_tree_node *node, void __rcu **slot, void *item)

返回类型:void

参数:

类型参数名称
struct xarray *root
struct radix_tree_node *node
void __rcu **slot
void *item
889  old等于Dependency order vs. p above. ( * slot)
890  values等于非非xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer.减非非xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer.
891  count等于calculate_count(root, node, slot, item, old)
898  WARN_ON_ONCE(!node && (slot != (void__rcu * * ) & xa_head) && (count || values))
900  replace_slot(slot, item, node, count, values)
902  如果非node则返回
905  delete_node(root, node)
调用者
名称描述
radix_tree_replace_slotadix_tree_replace_slot - replace item in a slot*@root: radix tree root*@slot: pointer to slot*@item: new item to store in the slot.* For use with radix_tree_lookup_slot() and* radix_tree_gang_lookup_tag_slot(). Caller must hold tree write locked
radix_tree_iter_replaceadix_tree_iter_replace - replace item in a slot*@root: radix tree root*@slot: pointer to slot*@item: new item to store in the slot.* For use with radix_tree_for_each_slot().* Caller must hold tree write locked.
idr_replacedr_replace() - replace pointer for given ID