函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventpoll.c Create Date:2022-07-29 10:50:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:all only when ep->mtx is held

函数原型:static inline struct wakeup_source *ep_wakeup_source(struct epitem *epi)

返回类型:struct wakeup_source

参数:

类型参数名称
struct epitem *epi
621  返回: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.))
调用者
名称描述
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