函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ep_ptable_queue_proc

函数原型:static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead, poll_table *pt)

返回类型:void

参数:

类型参数名称
struct file *file
wait_queue_head_t *whead
poll_table *pt
1298  epi等于Get the "struct epitem" from an epoll queue wrapper
1301  如果Number of active wait queue attached to poll operations 大于等于0且pwq等于分配高速缓存区
1302  init_waitqueue_func_entry( & Wait queue item that will be linked to the target file wait* queue head., This is the callback that is passed to the wait queue wakeup* mechanism)
1303  The wait queue head that linked the "wait" wait queue item 等于whead
1304  The "base" pointer is set to the container "struct epitem" 等于epi
1305  如果events按位与Set exclusive wakeup mode for the target file descriptor add_wait_queue_exclusive(whead, & Wait queue item that will be linked to the target file wait* queue head.)
1307  否则add_wait_queue(whead, & Wait queue item that will be linked to the target file wait* queue head.)
1309  添加链表项
1310  Number of active wait queue attached to poll operations 自加
1311  否则
1313  Number of active wait queue attached to poll operations 等于负1