函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_free_nodes() - Free this node and all nodes that it references*@xas: Array operation state.*@top: Node to free* This node has been removed from the tree. We must now free it and all* of its subnodes

函数原型:static void xas_free_nodes(struct xa_state *xas, struct xa_node *top)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
struct xa_node *top
521  offset等于0
522  node等于top
524  循环
525  entry等于Private
528  node等于Private
529  offset等于0
530  继续下一循环
532  如果entryRCU_INIT_POINTER() - initialize an RCU protected pointer*@p: The pointer to be initialized.*@v: The value to initialized the pointer to.* Initialize an RCU-protected pointer in special cases where readers(slots[offset], XA_RETRY_ENTRY)
534  offset自加
535 offset恒等于XA_CHUNK_SIZE循环
538  parent等于Private
540  Total entry count 等于0
541  Value entry count 等于0
542  xas_update(xas, node)
544  如果node恒等于top则返回
546  node等于parent
调用者
名称描述
xas_storexas_store() - Store this entry in the XArray
xa_destroyxa_destroy() - Free all internal data structures.*@xa: XArray.* After calling this function, the XArray is empty and has freed all memory* allocated for its internal data structures. You are responsible for* freeing the objects referenced by the XArray.