Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xarray.c Create Date:2022-07-28 06:13:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void xas_delete_node(struct xa_state *xas)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
479  node = xa_node
481  cycle
484  XA_NODE_BUG_ON(node, Total entry count > XA_CHUNK_SIZE)
485  If Total entry count Then Break
488  parent = Private
489  xa_node = parent
490  xa_offset = Slot offset in parent
491  xa_node_free(node)
493  If Not parent Then
494  xa_head = NULL
496  Return
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  If Not NULL at top of tree Then xas_shrink(xas)
Caller
NameDescribe
update_node