Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void xa_destroy(struct xarray *xa)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
1985  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, xa, 0)
1989  xa_node = NULL
1990  xas_lock_irqsave( & xas, flags)
1991  entry = Private
1992  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(xa_head, NULL)
1993  xas_init_marks() - Initialise all marks for the entry*@xas: Array operations state
1994  If xa_zero_busy(xa) Then xa_mark_clear(xa, XA_FREE_MARK)
1997  If Private Then 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
1999  xas_unlock_irqrestore( & xas, flags)
Caller
NameDescribe
check_xa_mark_2
check_reserve
check_multi_store_3
check_xa_alloc_1
check_xa_alloc_2
check_find_2
check_find_3
check_find_entry
check_move
check_align_1
check_destroy