Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:47:18
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lay_file_poll - poll file op for relay files*@filp: the file*@wait: poll table* Poll implemention.

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

Type:__poll_t

Parameter:

TypeParameterName
struct file *filp
poll_table *wait
926  mask = 0
927  buf = needed for tty driver, and maybe others
929  If uffer has been finalized Then Return EPOLLERR
932  If f_mode & le is open for reading Then
933  poll_wait(filp, & ader wait queue , wait)
934  If Not lay_buf_empty - boolean, is the channel buffer empty?*@buf: channel buffer* Returns 1 if the buffer is empty, 0 otherwise. Then mask |= Epoll event masks | EPOLLRDNORM
938  Return mask