函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static __poll_t ep_item_poll(const struct epitem *epi, poll_table *pt, int depth)

返回类型:__poll_t

参数:

类型参数名称
const struct epitem *epi
poll_table *pt
intdepth
869  _key等于events
870  如果非is_file_epoll(file)则返回: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  返回: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
调用者
名称描述
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