Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-28 10:06:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:devkmsg_poll

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

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
974  user = needed for tty driver, and maybe others
975  ret = 0
977  If Not user Then Return 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  If seq < dex and sequence number of the next record to store in the buffer Then
985  If seq < dex and sequence number of the first record stored in the buffer Then ret = Epoll event masks | EPOLLRDNORM | EPOLLERR | EPOLLPRI
987  Else ret = Epoll event masks | EPOLLRDNORM
990  logbuf_unlock_irq()
992  Return ret