Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__radix_tree_lookup

Proto:void *__radix_tree_lookup(const struct xarray *root, unsigned long index, struct radix_tree_node **nodep, void __rcu ***slotp)

Type:void

Parameter:

TypeParameterName
const struct xarray *root
unsigned longindex
struct radix_tree_node **nodep
void __rcu ***slotp
763  __rcu * slot
765  restart :
766  parent = NULL
767  slot = (void __rcu * * ) & xa_head
768  radix_tree_load_root(root, & node, & maxindex)
769  If index > maxindex Then Return NULL
772  When radix_tree_is_internal_node(node) cycle
775  parent = entry_to_node(node)
776  offset = radix_tree_descend(parent, & node, index)
777  slot = slots + offset
778  If node == RADIX_TREE_RETRY Then Go to restart
780  If shift == 0 Then Break
784  If nodep Then nodep = parent
786  If slotp Then slotp = slot
788  Return node
Caller
NameDescribe
radix_tree_lookup_slotadix_tree_lookup_slot - lookup a slot in a radix tree*@root: radix tree root*@index: index key* Returns: the slot corresponding to the position @index in the* radix tree @root
radix_tree_lookupadix_tree_lookup - perform lookup operation on a radix tree*@root: radix tree root*@index: index key* Lookup the item at the position @index in the radix tree @root.* This function can be called under rcu_read_lock, however the caller
radix_tree_delete_itemadix_tree_delete_item - delete an item from a radix tree*@root: radix tree root*@index: index key*@item: expected item* Remove @item at @index from the radix tree rooted at @root.* Return: the deleted entry, or %NULL if it was not present
idr_replacedr_replace() - replace pointer for given ID