Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-28 05:57:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__mod_lruvec_page_state

Proto:static inline void __mod_lruvec_page_state(struct page *page, enum node_stat_item idx, int val)

Type:void

Parameter:

TypeParameterName
struct page *page
enum node_stat_itemidx
intval
712  pgdat = page_pgdat(page)
716  If Not mem_cgroup Then
717  __mod_node_page_state(pgdat, idx, val)
718  Return
721  lruvec = mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
722  __mod_lruvec_state - update lruvec memory statistics*@lruvec: the lruvec*@idx: the stat item*@val: delta to add to the counter, can be negative* The lruvec is the intersection of the NUMA node and a cgroup
Caller
NameDescribe
page_add_file_rmappage_add_file_rmap - add pte mapping to a file page*@page: the page to add the mapping to*@compound: charge the page as compound or small page* The caller needs to hold the pte lock.
page_remove_file_rmap