函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:shadow_remove

函数原型:static noinline void shadow_remove(struct xarray *xa)

返回类型:void

参数:

类型参数名称
struct xarray *xa
1521  xa_lock(xa)
1522 node等于list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & shadow_nodes, structxa_node, private_list)循环
1524  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, The array we belong to , 0)
1525  XA_BUG_ON(xa, The array we belong to != xa)
1526  删除链表项并重新初始化
1527  xa_node等于Private
1528  xa_offset等于Slot offset in parent
1529  xa_shift等于Bits remaining in each slot The xarray is constructed out of a set of 'chunks' of pointers
1530  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.
1531  xas_store() - Store this entry in the XArray
1533  xa_unlock(xa)
调用者
名称描述
check_workingset