Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:signalfd_poll

Proto:static __poll_t signalfd_poll(struct file *file, poll_table *wait)

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
63  ctx = needed for tty driver, and maybe others
64  events = 0
66  poll_wait(file, & signalfd_wqh, wait)
68  spin_lock_irq( & siglock)
69  If next_signal( & pending, & sigmask) || next_signal( & shared_pending, & sigmask) Then events |= Epoll event masks
73  spin_unlock_irq( & siglock)
75  Return events