函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-27 12:52:08
Last Modify:2020-03-17 19:20:22 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lay_file_poll - poll file op for relay files*@filp: the file*@wait: poll table* Poll implemention.

函数原型:static __poll_t relay_file_poll(struct file *filp, poll_table *wait)

返回类型:__poll_t

参数:

类型参数名称
struct file *filp
poll_table *wait
926  mask等于0
927  buf等于 needed for tty driver, and maybe others
929  如果uffer has been finalized 则返回:EPOLLERR
932  如果f_mode按位与le is open for reading
933  poll_wait(filp, & ader wait queue , wait)
934  如果非lay_buf_empty - boolean, is the channel buffer empty?*@buf: channel buffer* Returns 1 if the buffer is empty, 0 otherwise.mask或等于Epoll event masks 按位或EPOLLRDNORM
938  返回:mask