函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_get_nr_swap_pages

函数原型:long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg)

返回类型:long

参数:

类型参数名称
struct mem_cgroup *memcg
7000  nr_swap_pages等于get_nr_swap_pages()
7002  如果非Whether the swap controller is active 或非cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)则返回:nr_swap_pages
7004 memcg不等于root_mem_cgroup循环nr_swap_pages等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(long, nr_swap_pages, READ_ONCE(max) - page_counter_read( & swap))
7008  返回:nr_swap_pages
调用者
名称描述
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned