Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmpressure_event

Proto:static bool vmpressure_event(struct vmpressure *vmpr, const enum vmpressure_levels level, bool ancestor, bool signalled)

Type:bool

Parameter:

TypeParameterName
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  If ancestor && mode == VMPRESSURE_LOCAL Then Continue
169  If signalled && mode == VMPRESSURE_NO_PASSTHROUGH Then Continue
171  If level < level Then Continue
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  Return ret
Caller
NameDescribe
vmpressure_work_fn