函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the memory (and swap, if configured) limit for a memcg.

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

返回类型:unsigned long

参数:

类型参数名称
struct mem_cgroup *memcg
1541  max等于max
1542  如果mem_cgroup_swappiness(memcg)则
1546  memsw_max等于max
1547  swap_max等于max
1548  swap_max等于两数取小(swap_max, (unsignedlong)protected with swap_lock. reading in vm_swap_full() doesn't need lock )
1549  max等于两数取小(max + swap_max, memsw_max)
1551  返回:max
调用者
名称描述
constrained_allocDetermine the type of allocation constraint.