Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)

Type:int

Parameter:

TypeParameterName
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  If flags & EPOLLHUP Then
4468  spin_lock( & event_list_lock)
4477  spin_unlock( & event_list_lock)
4480  Return 0