Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:20
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Poll support for process exit notification.

Proto:static __poll_t pidfd_poll(struct file *file, struct poll_table_struct *pts)

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
struct poll_table_struct *pts
1774  pid = needed for tty driver, and maybe others
1775  poll_flags = 0
1777  poll_wait(file, & wait queue for pidfd notifications , pts)
1779  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1780  task = pid_task(pid, PIDTYPE_PID)
1786  If Not task || exit state && thread_group_empty(task) Then poll_flags = Epoll event masks | EPOLLRDNORM
1788  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1790  Return poll_flags