Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:eventfd_poll

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

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
128  ctx = needed for tty driver, and maybe others
129  events = 0
132  poll_wait(file, & wqh, wait)
172  count = READ_ONCE(* Every time that a write(2) is performed on an eventfd, the * value of the __u64 being written is added to "count" and a * wakeup is performed on "wqh". A read(2) will return the "count" * value to userspace, and will reset "count" to zero. The kernel * s)
174  If count > 0 Then events |= Epoll event masks
176  If count == ULLONG_MAX Then events |= EPOLLERR
178  If ULLONG_MAX - 1 > count Then events |= EPOLLOUT
181  Return events