函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-29 10:34:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:No kernel lock held - fine

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

返回类型:__poll_t

参数:

类型参数名称
struct file *filp
poll_table *wait
641  pipe等于 needed for tty driver, and maybe others
650  poll_wait(filp, & wait, wait)
657  head等于READ_ONCE(head)
658  tail等于READ_ONCE(tail)
660  mask等于0
661  如果f_mode按位与le is open for reading
662  如果非pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointermask或等于Epoll event masks 按位或EPOLLRDNORM
664  如果非writersf_version不等于w_countermask或等于EPOLLHUP
668  如果f_mode按位与le is open for writing
669  如果非pipe_full - Return true if the pipe is full*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@limit: The maximum amount of slots available.mask或等于EPOLLOUT按位或EPOLLWRNORM
675  如果非readersmask或等于EPOLLERR
679  返回:mask