函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:50
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Poll support for process exit notification.

函数原型:static __poll_t pidfd_poll(struct file *file, struct poll_table_struct *pts)

返回类型:__poll_t

参数:

类型参数名称
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, 单一进程)
1786  如果非task进程退出时状态thread_group_empty(task)则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  返回:poll_flags