函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unpack_shadow

函数原型:static void unpack_shadow(void *shadow, int *memcgidp, pg_data_t **pgdat, unsigned long *evictionp, bool *workingsetp)

返回类型:void

参数:

类型参数名称
void *shadow
int *memcgidp
pg_data_t **pgdat
unsigned long *evictionp
bool *workingsetp
199  entry等于xa_to_value() - Get value stored in an XArray entry.*@entry: XArray entry.* Context: Any context.* Return: The value stored in the XArray entry.
203  workingset等于entry按位与1
204  entry右移等于1位
205  nid等于entry按位与1UL左移NODES_SHIFT位的值减1
206  entry右移等于NODES_SHIFT
207  memcgid等于entry按位与1UL左移MEM_CGROUP_ID_SHIFT位的值减1
208  entry右移等于MEM_CGROUP_ID_SHIFT
210  memcgidp等于memcgid
211  pgdat等于NUMA节点数据区(nid)
212  evictionp等于entry左移Eviction timestamps need to be able to cover the full range of* actionable refaults. However, bits are tight in the xarray* entry, and after storing the identifier for the lruvec there might* not be enough left to represent every single actionable refault
213  workingsetp等于workingset
调用者
名称描述
workingset_refaultworkingset_refault - evaluate the refault of a previously evicted page*@page: the freshly allocated replacement page*@shadow: shadow entry of the evicted page* Calculates and evaluates the refault distance of the previously* evicted page in the context of