Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:adix_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

Proto:void *radix_tree_delete_item(struct xarray *root, unsigned long index, void *item)

Type:void

Parameter:

TypeParameterName
struct xarray *root
unsigned longindex
void *item
1426  struct node = NULL
1427  void __rcu * * slot = NULL
1430  entry = __radix_tree_lookup - lookup an item in a radix tree*@root: radix tree root*@index: index key*@nodep: returns node*@slotp: returns slot* Lookup and return the item at position @index in the radix* tree @root
1431  If Not slot Then Return NULL
1433  If Not entry && ( Not is_idr(root) || 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., get_slot_offset(node, slot))) Then Return NULL
1437  If item && entry != item Then Return NULL
1440  __radix_tree_delete(root, node, slot)
1442  Return entry
Caller
NameDescribe
radix_tree_deleteadix_tree_delete - delete an entry from a radix tree*@root: radix tree root*@index: index key* Remove the entry at @index from the radix tree rooted at @root.* Return: The deleted entry, or %NULL if it was not present.
idr_removedr_remove() - Remove an ID from the IDR