函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xarray.c Create Date:2022-07-27 07:10:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xas_delete_node() - Attempt to delete an xa_node*@xas: Array operation state.* Attempts to delete the @xas->xa_node. This will fail if xa->node has* a non-zero reference count.

函数原型:static void xas_delete_node(struct xa_state *xas)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
479  node等于xa_node
481  循环
484  XA_NODE_BUG_ON(node, Total entry count > XA_CHUNK_SIZE)
485  如果Total entry count 退出
488  parent等于Private
489  xa_node等于parent
490  xa_offset等于Slot offset in parent
491  xa_node_free(node)
493  如果非parent
494  xa_head = NULL
495  xa_node等于XAS_BOUNDS
496  返回
499  slots[xa_offset] = NULL
500  Total entry count 自减
501  XA_NODE_BUG_ON(parent, Total entry count > XA_CHUNK_SIZE)
502  node等于parent
503  xas_update(xas, node)
506  如果非NULL at top of tree xas_shrink(xas)
调用者
名称描述
update_node