函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void *radix_tree_delete_item(struct xarray *root, unsigned long index, void *item)

返回类型:void

参数:

类型参数名称
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  如果非slot则返回:NULL
1433  如果非entry且非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))的值则返回:NULL
1437  如果itementry不等于item则返回:NULL
1440  __radix_tree_delete(root, node, slot)
1442  返回:entry
调用者
名称描述
radix_tree_delete删除radix树项目
idr_remove删除释放idr