函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memcg_oom_wake_function

函数原型:static int memcg_oom_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg)

返回类型:int

参数:

类型参数名称
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  如果非mem_cgroup_is_descendant(wake_memcg, oom_wait_memcg)且非mem_cgroup_is_descendant(oom_wait_memcg, wake_memcg)则返回:0
1739  返回:autoremove_wake_function(wait, mode, sync, arg)