函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline struct lruvec *mem_cgroup_lruvec(struct mem_cgroup *memcg, struct pglist_data *pgdat)

返回类型:struct lruvec

参数:

类型参数名称
struct mem_cgroup *memcg
struct pglist_data *pgdat
398  如果mem_cgroup_disabled()则
399  lruvec等于* NOTE: THIS IS UNUSED IF MEMCG IS ENABLED. * Use mem_cgroup_lruvec() to look up lruvecs.
400  转到:out
403  如果非memcgmemcg等于root_mem_cgroup
406  mz等于mem_cgroup_nodeinfo(memcg, 全局结点ID)
407  lruvec等于lruvec
408  out :
414  如果此条件成立可能性小(为编译器优化)(pgdat != pgdat)则pgdat等于pgdat
416  返回:lruvec
调用者
名称描述
shrink_node_memcgs
shrink_node
snapshot_refaults
do_try_to_free_pagesThis is the main entry point to direct page reclaim
mem_cgroup_shrink_nodeOnly used by soft limit reclaim. Do not reuse for anything else.
age_active_anon
clear_pgdat_congestedClear pgdat state for congested, dirty or under writeback.
advance_inactive_age
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
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
count_shadow_nodes
__mod_lruvec_slab_state
mem_cgroup_node_nr_lru_pages
mem_cgroup_move_accountmem_cgroup_move_account - move account of the page*@page: the page*@compound: charge the page as compound or small page*@from: mem_cgroup which the page is moved from.*@to: mem_cgroup which the page is moved to. @from != @to.
__mod_lruvec_page_state