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:__radix_tree_replace

Proto:void __radix_tree_replace(struct xarray *root, struct radix_tree_node *node, void __rcu **slot, void *item)

Type:void

Parameter:

TypeParameterName
struct xarray *root
struct radix_tree_node *node
void __rcu **slot
void *item
889  old = Dependency order vs. p above. ( * slot)
890  values = Not Not 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. - Not Not 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  If Not node Then Return
905  delete_node(root, node)
Caller
NameDescribe
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