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:ep_ptable_queue_proc

Proto:static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead, poll_table *pt)

Type:void

Parameter:

TypeParameterName
struct file *file
wait_queue_head_t *whead
poll_table *pt
1298  epi = Get the "struct epitem" from an epoll queue wrapper
1301  If Number of active wait queue attached to poll operations >= 0 && (pwq = kmem_cache_alloc(Slab cache used to allocate "struct eppoll_entry" , GFP_KERNEL)) Then
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  If events & Set exclusive wakeup mode for the target file descriptor Then add_wait_queue_exclusive(whead, & Wait queue item that will be linked to the target file wait* queue head.)
1307  Else add_wait_queue(whead, & Wait queue item that will be linked to the target file wait* queue head.)
1309  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1310  Number of active wait queue attached to poll operations ++
1311  Else
1313  Number of active wait queue attached to poll operations = -1