Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_counter_read

Proto:static inline unsigned long page_counter_read(struct page_counter *counter)

Type:unsigned long

Parameter:

TypeParameterName
struct page_counter *counter
47  Return atomic_long_read( & usage)
Caller
NameDescribe
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