Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memcg_oom_wake_function

Proto:static int memcg_oom_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg)

Type:int

Parameter:

TypeParameterName
wait_queue_entry_t *wait
unsignedmode
intsync
void *arg
1729  wake_memcg = arg
1733  oom_wait_info = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(wait, structoom_wait_info, wait)
1734  oom_wait_memcg = memcg
1736  If Not mem_cgroup_is_descendant(wake_memcg, oom_wait_memcg) && Not mem_cgroup_is_descendant(oom_wait_memcg, wake_memcg) Then Return 0
1739  Return autoremove_wake_function(wait, mode, sync, arg)