函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:y userspace file descriptor functions

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

返回类型:__poll_t

参数:

类型参数名称
struct file *file
poll_table *wait
103  group等于 needed for tty driver, and maybe others
104  ret等于0
106  poll_wait(file, & read() on the notification file blocks on this waitq , wait)
107  加自旋锁
108  如果非rn true if the notify queue is empty, false otherwise ret等于Epoll event masks 按位或EPOLLRDNORM
110  自旋锁解锁
112  返回:ret