函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Gets called on EPOLLHUP on eventfd when user closes it.* Called with wqh->lock held and interrupts disabled.

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

返回类型:int

参数:

类型参数名称
wait_queue_entry_t *wait
unsignedmode
intsync
void *key
4453  event等于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, structmem_cgroup_event, wait)
4455  memcg等于memcg which the event belongs to.
4456  flags等于key_to_poll(key)
4458  如果flags按位与EPOLLHUP
4468  加自旋锁
4469  如果非链表为空
4477  自旋锁解锁
4480  返回:0