函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:在radix树中插入节点

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

返回类型:int

参数:

类型参数名称
struct xarray *root
unsigned longindex
void *item
717  __rcuslot
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  如果error则返回:error
726  error等于insert_entries(node, slot, item, false)
727  如果error小于0则返回:error
730  如果node
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  否则
736  BUG_ON(root_tags_get(root))
739  返回:0
调用者
名称描述
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.
irq_domain_set_mapping
new_vmap_blockw_vmap_block - allocates new vmap_block and occupies 2^order pages in this* block
ioc_create_icq_create_icq - create and link io_cq*@ioc: io_context of interest*@q: request_queue of interest*@gfp_mask: allocation mask* Make sure io_cq linking @ioc and @q exists