函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-27 06:56:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lruvec_page_state

函数原型:static inline unsigned long lruvec_page_state(struct lruvec *lruvec, enum node_stat_item idx)

返回类型:unsigned long

参数:

类型参数名称
struct lruvec *lruvec
enum node_stat_itemidx
663  如果mem_cgroup_disabled()则返回:Determine the per node value of a stat item.
666  pn等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(lruvec, structmem_cgroup_per_node, lruvec)
667  x等于atomic_long_read( & lruvec_stat[idx])
672  返回:x
调用者
名称描述
inactive_is_lowThe inactive anon list should be small enough that the VM never has* to do too much work.* The inactive file list should be small enough to leave most memory* to the established workingset on the scan-resistant active list,
shrink_node
snapshot_refaults
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