函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_counter_read

函数原型:static inline unsigned long page_counter_read(struct page_counter *counter)

返回类型:unsigned long

参数:

类型参数名称
struct page_counter *counter
47  返回:atomic_long_read( & usage)
调用者
名称描述
soft_limit_excess
mem_cgroup_marginmem_cgroup_margin - calculate chargeable space of a memory cgroup*@memcg: the memory cgroup* Returns the maximum amount of memory @mem can be charged with, in* pages.
mem_cgroup_print_oom_meminfomem_cgroup_print_oom_meminfo: Print OOM memory information relevant to* memory controller.*@memcg: The memory cgroup that went over limit
mem_cgroup_size
reclaim_high
mem_cgroup_handle_over_highScheduled by try_charge() to be executed from the userland return path* and reclaims memory over the high limit.
try_charge
mem_cgroup_force_emptyReclaims as many pages from the given memcg as possible.* Caller is responsible for holding css reference for memcg.
mem_cgroup_usage
mem_cgroup_read_u64
memory_current_read
memory_high_write
memory_max_write
mem_cgroup_protectedmem_cgroup_protected - check if memory consumption is in the normal range*@root: the top ancestor of the sub-tree being checked*@memcg: the memory cgroup to check* WARNING: This function is not stateless! It can only be used as part
mem_cgroup_get_nr_swap_pages
mem_cgroup_swap_full
swap_current_read
hugetlb_cgroup_have_usage
hugetlb_cgroup_read_u64
page_counter_reset_watermark