Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_counter.c Create Date:2022-07-28 16:07:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page_counter_set_max - set the maximum number of pages allowed*@counter: counter*@nr_pages: limit to set* Returns 0 on success, -EBUSY if the current number of pages on the* counter already exceeds the specified limit.

Proto:int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages)

Type:int

Parameter:

TypeParameterName
struct page_counter *counter
unsigned longnr_pages
175  cycle
190  usage = atomic_long_read( & usage)
192  If usage > nr_pages Then Return -EBUSY
195  old = xchg( & max, nr_pages)
197  If atomic_long_read( & usage) <= usage Then Return 0
200  max = old
201  cond_resched()
Caller
NameDescribe
mem_cgroup_resize_max
memcg_update_kmem_max
memcg_update_tcp_max
mem_cgroup_css_resetmem_cgroup_css_reset - reset the states of a mem_cgroup*@css: the target css* Reset the states of the mem_cgroup associated with @css. This is* invoked when the userland requests disabling on the default hierarchy
hugetlb_cgroup_init
hugetlb_cgroup_write