函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:eventfd_poll

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

返回类型:__poll_t

参数:

类型参数名称
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  如果count大于0则events或等于Epoll event masks
176  如果count恒等于ULLONG_MAXevents或等于EPOLLERR
178  如果ULLONG_MAX减1大于countevents或等于EPOLLOUT
181  返回:events