Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static inline struct lruvec *mem_cgroup_lruvec(struct mem_cgroup *memcg, struct pglist_data *pgdat)

Type:struct lruvec

Parameter:

TypeParameterName
struct mem_cgroup *memcg
struct pglist_data *pgdat
398  If mem_cgroup_disabled() Then
399  lruvec = * NOTE: THIS IS UNUSED IF MEMCG IS ENABLED. * Use mem_cgroup_lruvec() to look up lruvecs.
400  Go to out
403  If Not memcg Then memcg = root_mem_cgroup
406  mz = mem_cgroup_nodeinfo(memcg, node_id)
407  lruvec = lruvec
408  out :
414  If Value for the false possibility is greater at compile time(pgdat != pgdat) Then pgdat = pgdat
416  Return lruvec
Caller
NameDescribe
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.