Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:50:52
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mqueue_poll_file

Proto:static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)

Type:__poll_t

Parameter:

TypeParameterName
struct file *filp
struct poll_table_struct *poll_tab
603  info = MQUEUE_I(file_inode(filp))
604  retval = 0
606  poll_wait(filp, & wait_q, poll_tab)
608  spin_lock( & lock)
609  If number of messages currently queued Then retval = Epoll event masks | EPOLLRDNORM
612  If number of messages currently queued < maximum number of messages Then retval |= EPOLLOUT | EPOLLWRNORM
614  spin_unlock( & lock)
616  Return retval