函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lruvec_memcg

函数原型:static inline struct mem_cgroup *lruvec_memcg(struct lruvec *lruvec)

返回类型:struct mem_cgroup

参数:

类型参数名称
struct lruvec *lruvec
466  如果mem_cgroup_disabled()则返回:NULL
469  mz等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(lruvec, structmem_cgroup_per_node, lruvec)
470  返回:Back pointer, we cannot
调用者
名称描述
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages
shrink_active_list
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned
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