Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__mod_lruvec_slab_state

Proto:void __mod_lruvec_slab_state(void *p, enum node_stat_item idx, int val)

Type:void

Parameter:

TypeParameterName
void *p
enum node_stat_itemidx
intval
762  page = virt_to_head_page(p)
763  pgdat = page_pgdat(page)
767  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
768  memcg = memcg_from_slab_page(page)
771  If Not memcg || memcg == root_mem_cgroup Then
772  __mod_node_page_state(pgdat, idx, val)
773  Else
774  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.
775  __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
777  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
Caller
NameDescribe
__inc_lruvec_slab_state
__dec_lruvec_slab_state