函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_event

函数原型:static bool vmpressure_event(struct vmpressure *vmpr, const enum vmpressure_levels level, bool ancestor, bool signalled)

返回类型:bool

参数:

类型参数名称
struct vmpressure *vmpr
const enum vmpressure_levelslevel
boolancestor
boolsignalled
163  bool ret = false
165  mutex_lock( & Have to grab the lock on events traversal or modifications. )
167  如果ancestormode恒等于VMPRESSURE_LOCAL则继续下一循环
169  如果signalledmode恒等于VMPRESSURE_NO_PASSTHROUGH则继续下一循环
171  如果level小于level则继续下一循环
173  eventfd_signal(efd, 1)
174  ret = true
176  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
178  返回:ret
调用者
名称描述
vmpressure_work_fn