函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_workingset

函数原型:static noinline void check_workingset(struct xarray *xa, unsigned long index)

返回类型:void

参数:

类型参数名称
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  循环
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 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.循环
1549  XA_BUG_ON(xa, 链表为空)
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, !链表为空)
1556  xas_store() - Store this entry in the XArray
1557  xas_unlock( & xas)
1558  XA_BUG_ON(xa, 链表为空)
1560  shadow_remove(xa)
1561  XA_BUG_ON(xa, !链表为空)
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.)
调用者
名称描述
xarray_checks