Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_xas_erase

Proto:static noinline void check_xas_erase(struct xarray *xa)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
466  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)
470  When i < 200 cycle
471  When j < 2 * i + 17 cycle
473  Do
480  xas_set() - Set up XArray operation state for a different index
481  Do
482  xas_lock( & xas)
484  xas_unlock( & xas)
485  When xas_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. cycle
487  xas_lock( & xas)
488  xas_store() - Store this entry in the XArray
490  xas_set() - Set up XArray operation state for a different index
491  j = i
493  XA_BUG_ON(xa, entry != xa_mk_index(j))
494  xas_store() - Store this entry in the XArray
495  j++
497  xas_unlock( & xas)
498  XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.)
Caller
NameDescribe
xarray_checks