函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:userfaultfd_poll

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

返回类型:__poll_t

参数:

类型参数名称
struct file *file
poll_table *wait
978  ctx等于 needed for tty driver, and maybe others
981  poll_wait(file, & waitqueue head for the pseudo fd to wakeup poll/read , wait)
984  :state machine 恒等于UFFD_STATE_WAIT_API
985  返回:EPOLLERR
986  :state machine 恒等于UFFD_STATE_RUNNING
991  如果此条件成立可能性小(为编译器优化)(!(f_flags & O_NONBLOCK))则返回:EPOLLERR
1003  ret等于0
1004  smp_mb()
1005  如果waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ret等于Epoll event masks
1007  否则如果waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ret等于Epoll event masks
1010  返回:ret
1011  默认
1012  WARN_ON_ONCE(1)
1013  返回:EPOLLERR