函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-27 18:26:05
Last Modify:2020-03-17 23:00:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mqueue_poll_file

函数原型:static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)

返回类型:__poll_t

参数:

类型参数名称
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  加自旋锁
609  如果 number of messages currently queued retval等于Epoll event masks 按位或EPOLLRDNORM
612  如果 number of messages currently queued 小于 maximum number of messages retval或等于EPOLLOUT按位或EPOLLWRNORM
614  自旋锁解锁
616  返回:retval