Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the memory (and swap, if configured) limit for a memcg.

Proto:unsigned long mem_cgroup_get_max(struct mem_cgroup *memcg)

Type:unsigned long

Parameter:

TypeParameterName
struct mem_cgroup *memcg
1541  max = max
1542  If mem_cgroup_swappiness(memcg) Then
1546  memsw_max = max
1547  swap_max = max
1548  swap_max = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(swap_max, (unsignedlong)protected with swap_lock. reading in vm_swap_full() doesn't need lock )
1549  max = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(max + swap_max, memsw_max)
1551  Return max