Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Differs from ep_eventpoll_poll() in that internal callers already have* the ep->mtx so we need to start from depth=1, such that mutex_lock_nested()* is correctly annotated.

Proto:static __poll_t ep_item_poll(const struct epitem *epi, poll_table *pt, int depth)

Type:__poll_t

Parameter:

TypeParameterName
const struct epitem *epi
poll_table *pt
intdepth
869  _key = events
870  If Not is_file_epoll(file) Then Return vfs_poll(file, pt) & events
873  ep = needed for tty driver, and maybe others
874  poll_wait(file, & Wait queue used by file->poll() , pt)
875  locked = pt && _qproc == ep_ptable_queue_proc
877  Return p_scan_ready_list - Scans the ready list in a way that makes possible for* the scan code, to call f_op->poll(). Also allows for* O(NumReady) performance.*@ep: Pointer to the epoll private data structure.*@sproc: Pointer to the scan callback. & events
Caller
NameDescribe
ep_read_events_proc
ep_insertMust be called with "mtx" held.
ep_modifyModify the interest event mask by dropping an event if the new mask* has a match in the current file status. Must be called with "mtx" held.
ep_send_events_proc