函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:per-process(per-mm_struct) statistics.

函数原型:static inline unsigned long get_mm_counter(struct mm_struct *mm, int member)

返回类型:unsigned long

参数:

类型参数名称
struct mm_struct *mm
intmember
1618  val等于atomic_long_read( & count[member])
1625  如果val小于0则val等于0
1628  返回:val
调用者
名称描述
oom_badnessm_badness - heuristic function to determine which candidate task to kill*@p: task struct of which task we should calculate*@totalpages: total present RAM allowed for page allocation* The heuristic for determining which task to kill is made to be as simple
dump_task
oom_reap_task_mmReaps the address space of the give task.* Returns true on success and false if none or part of the address space* has been reclaimed and the caller should retry later.
__oom_kill_process
get_mm_rss