Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xas_destroy() - Free any resources allocated during the XArray operation.*@xas: XArray operation state.* This function is now internal-only.

Proto:static void xas_destroy(struct xa_state *xas)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
269  node = xa_alloc
271  If Not node Then Return
273  XA_NODE_BUG_ON(node, !list_empty - tests whether a list is empty*@head: the list to test.)
274  kmem_cache_free(Move the radix tree node cache here , node)
275  xa_alloc = NULL
Caller
NameDescribe
xas_nomemxas_nomem() - Allocate memory if needed.*@xas: XArray operation state.*@gfp: Memory allocation flags.* If we need to add new nodes to the XArray, we try to allocate memory* with GFP_NOWAIT while holding the lock, which will usually succeed.
__xas_nomem__xas_nomem() - Drop locks and allocate memory if needed.*@xas: XArray operation state.*@gfp: Memory allocation flags.* Internal variant of xas_nomem().* Return: true if memory was needed, and was successfully allocated.