函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_work_fn

函数原型:static void vmpressure_work_fn(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
183  vmpr等于work_to_vmpressure(work)
187  bool ancestor = false
188  bool signalled = false
190  加自旋锁
199  scanned等于tree_scanned
200  如果非scanned
201  自旋锁解锁
202  返回
205  reclaimed等于tree_reclaimed
206  tree_scanned等于0
207  tree_reclaimed等于0
208  自旋锁解锁
210  level等于vmpressure_calc_level(scanned, reclaimed)
212  循环
213  如果vmpressure_event(vmpr, level, ancestor, signalled)则signalled = true
215  ancestor = true
216 vmpr等于vmpressure_parent(vmpr)循环