函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:count_shadow_nodes

函数原型:static unsigned long count_shadow_nodes(struct shrinker *shrinker, struct shrink_control *sc)

返回类型:unsigned long

参数:

类型参数名称
struct shrinker *shrinker
struct shrink_control *sc
437  nodes等于list_lru_shrink_count( & Shadow entries reflect the share of the working set that does not* fit into memory, so their number depends on the access pattern of* the workload, sc)
462  如果current memcg being shrunk (for memcg aware shrinkers)
466  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.
467 i小于NR_LRU_LISTS循环pages加等于lruvec_page_state_local(lruvec, NR_LRU_BASE + i)
470  pages加等于lruvec_page_state_local(lruvec, NR_SLAB_RECLAIMABLE)
471  pages加等于lruvec_page_state_local(lruvec, NR_SLAB_UNRECLAIMABLE)
472  否则pages等于node_present_pages(current node being shrunk (for NUMA aware shrinkers) )
476  max_nodes等于pages右移The xarray is constructed out of a set of 'chunks' of pointers减3位
478  如果非nodes则返回:SHRINK_EMPTY
481  如果nodes小于等于max_nodes则返回:0
483  返回:nodesmax_nodes