Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unpack_shadow

Proto:static void unpack_shadow(void *shadow, int *memcgidp, pg_data_t **pgdat, unsigned long *evictionp, bool *workingsetp)

Type:void

Parameter:

TypeParameterName
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 = NODE_DATA(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
Caller
NameDescribe
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