Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_workingset

Proto:static noinline void check_workingset(struct xarray *xa, unsigned long index)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
unsigned longindex
1538  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, index)
1539  xas_set_update() - Set up XArray operation state for a callback.*@xas: XArray operation state.*@update: Function to call when updating a node.* The XArray can notify a caller after it has updated an xa_node.
1541  Do
1542  xas_lock( & xas)
1543  xas_store() - Store this entry in the XArray
1544  xas_next() - Move state to next index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1545  xas_store() - Store this entry in the XArray
1546  xas_unlock( & xas)
1547  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
1549  XA_BUG_ON(xa, list_empty - tests whether a list is empty*@head: the list to test.)
1551  xas_lock( & xas)
1552  xas_next() - Move state to next index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1553  xas_store() - Store this entry in the XArray
1554  XA_BUG_ON(xa, !list_empty - tests whether a list is empty*@head: the list to test.)
1556  xas_store() - Store this entry in the XArray
1557  xas_unlock( & xas)
1558  XA_BUG_ON(xa, list_empty - tests whether a list is empty*@head: the list to test.)
1560  shadow_remove(xa)
1561  XA_BUG_ON(xa, !list_empty - tests whether a list is empty*@head: the list to test.)
1562  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