Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_uring_poll

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

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
4971  ctx = needed for tty driver, and maybe others
4972  mask = 0
4974  poll_wait(file, & cq_wait, wait)
4979  smp_rmb()
4980  If READ_ONCE(tail) - cached_sq_head != Ring sizes (constant, power of 2) Then mask |= EPOLLOUT | EPOLLWRNORM
4983  If io_cqring_events(ctx, false) Then mask |= Epoll event masks | EPOLLRDNORM
4986  Return mask