函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void xa_destroy(struct xarray *xa)

返回类型:void

参数:

类型参数名称
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  如果xa_zero_busy(xa)则xa_mark_clear(xa, XA_FREE_MARK)
1997  如果Private 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)
调用者
名称描述
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