函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pack_shadow

函数原型:static void *pack_shadow(int memcgid, pg_data_t *pgdat, unsigned long eviction, bool workingset)

返回类型:void

参数:

类型参数名称
intmemcgid
pg_data_t *pgdat
unsigned longeviction
boolworkingset
187  eviction右移等于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
188  eviction与等于EVICTION_MASK
189  eviction等于eviction左移MEM_CGROUP_ID_SHIFT位按位或memcgid
190  eviction等于eviction左移NODES_SHIFT位按位或全局结点ID
191  eviction等于eviction左移1位按位或workingset
193  返回:xa_mk_value() - Create an XArray entry from an integer.*@v: Value to store in XArray.* Context: Any context.* Return: An entry suitable for storing in the XArray.
调用者
名称描述
workingset_evictionworkingset_eviction - note the eviction of a page from memory*@target_memcg: the cgroup that is causing the reclaim*@page: the page being evicted* Returns a shadow entry to be stored in @page->mapping->i_pages in place