Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__radix_tree_insert - insert into a radix tree*@root: radix tree root*@index: index key*@item: item to insert* Insert an item into the radix tree at position @index.

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

Type:int

Parameter:

TypeParameterName
struct xarray *root
unsigned longindex
void *item
717  __rcu * slot
720  BUG_ON(radix_tree_is_internal_node(item))
722  error = __radix_tree_create - create a slot in a radix tree*@root: radix tree root*@index: index key*@nodep: returns node*@slotp: returns slot* Create, if necessary, and return the node and slot for an item* at position @index in the radix tree @root
723  If error Then Return error
726  error = insert_entries(node, slot, item, false)
727  If error < 0 Then Return error
730  If node Then
731  offset = get_slot_offset(node, slot)
732  BUG_ON(tag_get(node, 0, offset))
733  BUG_ON(tag_get(node, 1, offset))
734  BUG_ON(tag_get(node, 2, offset))
735  Else
736  BUG_ON(root_tags_get(root))
739  Return 0
Caller
NameDescribe
active_cacheline_insert
blkg_createIf @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return.