函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-27 11:06:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:devkmsg_poll

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

返回类型:__poll_t

参数:

类型参数名称
struct file *file
poll_table *wait
974  user等于 needed for tty driver, and maybe others
975  ret等于0
977  如果非user则返回:EPOLLERR按位或EPOLLNVAL
980  poll_wait(file, & log_wait, wait)
982  Helper macros to lock/unlock logbuf_lock and switch between* printk-safe/unsafe modes.()
983  如果seq小于dex and sequence number of the next record to store in the buffer
985  如果seq小于dex and sequence number of the first record stored in the buffer ret等于Epoll event masks 按位或EPOLLRDNORM按位或EPOLLERR按位或EPOLLPRI
987  否则ret等于Epoll event masks 按位或EPOLLRDNORM
990  logbuf_unlock_irq()
992  返回:ret