Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void xas_free_nodes(struct xa_state *xas, struct xa_node *top)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
struct xa_node *top
521  offset = 0
522  node = top
524  cycle
525  entry = Private
528  node = Private
529  offset = 0
530  Continue
532  If entry Then RCU_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  When offset == XA_CHUNK_SIZE cycle
538  parent = Private
542  xas_update(xas, node)
544  If node == top Then Return
546  node = parent
Caller
NameDescribe
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.