Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:all only when ep->mtx is held

Proto:static inline struct wakeup_source *ep_wakeup_source(struct epitem *epi)

Type:struct wakeup_source

Parameter:

TypeParameterName
struct epitem *epi
621  Return cu_dereference_check() - rcu_dereference with debug checking*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Do an rcu_dereference(), but check that the conditions under which the(wakeup_source used when EPOLLWAKEUP is set , lockdep_is_held( & * This mutex is used to ensure that files are not removed * while epoll is using them. This is held during the event * collection loop, the file cleanup path, the epoll file exit * code and the ctl operations.))
Caller
NameDescribe
ep_pm_stay_awakeall only when ep->mtx is held
ep_removeRemoves a "struct epitem" from the eventpoll RB tree and deallocates* all the associated resources. Must be called with "mtx" held.
ep_read_events_proc
ep_destroy_wakeup_sourceare code path, only used when EPOLL_CTL_MOD removes a wakeup source
ep_insertMust be called with "mtx" held.
ep_send_events_proc