Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fanotify\fanotify_user.c Create Date:2022-07-28 20:18:33
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 fanotify_poll(struct file *file, poll_table *wait)

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
322  group = needed for tty driver, and maybe others
323  ret = 0
325  poll_wait(file, & read() on the notification file blocks on this waitq , wait)
326  spin_lock( & protect the notification_list )
327  If Not rn true if the notify queue is empty, false otherwise Then ret = Epoll event masks | EPOLLRDNORM
329  spin_unlock( & protect the notification_list )
331  Return ret