Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:04
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Fish for pollable events on the pollfd->fd file descriptor

Proto:static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, bool *can_busy_poll, __poll_t busy_flag)

Type:__poll_t

Parameter:

TypeParameterName
struct pollfd *pollfd
poll_table *pwait
bool *can_busy_poll
__poll_tbusy_flag
845  fd = fd
846  mask = 0
849  If fd < 0 Then Go to out
851  mask = EPOLLNVAL
852  f = fdget(fd)
853  If Not file Then Go to out
857  filter = demangle_poll(events) | EPOLLERR | EPOLLHUP
858  _key = filter | busy_flag
859  mask = vfs_poll(file, pwait)
860  If mask & busy_flag Then * can_busy_poll = true
862  mask &= filter
863  fdput(f)
865  out :
867  revents = mangle_poll(mask)
868  Return mask
Caller
NameDescribe
do_poll