函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__mod_lruvec_slab_state

函数原型:void __mod_lruvec_slab_state(void *p, enum node_stat_item idx, int val)

返回类型:void

参数:

类型参数名称
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  如果非memcgmemcg恒等于root_mem_cgroup
772  __mod_node_page_state(pgdat, idx, val)
773  否则
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()
调用者
名称描述
__inc_lruvec_slab_state
__dec_lruvec_slab_state