Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:y userspace file descriptor functions

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

Type:__poll_t

Parameter:

TypeParameterName
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  spin_lock( & protect the notification_list )
108  If Not rn true if the notify queue is empty, false otherwise Then ret = Epoll event masks | EPOLLRDNORM
110  spin_unlock( & protect the notification_list )
112  Return ret