函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 12:58:32
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:g_buffer_poll_wait - poll on buffer input*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@filp: the file descriptor*@poll_table: The poll descriptor* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon

函数原型:__poll_t ring_buffer_poll_wait(struct ring_buffer *buffer, int cpu, struct file *filp, poll_table *poll_table)

返回类型:__poll_t

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
struct file *filp
poll_table *poll_table
693  如果cpu恒等于RING_BUFFER_ALL_CPUSwork等于irq_work
695  否则
696  如果非测试CPU信息则返回:负EINVAL
699  cpu_buffer等于buffers[cpu]
700  work等于irq_work
703  poll_wait(filp, & waiters, poll_table)
704  waiters_pending = true
718  smp_mb()
720  如果cpu恒等于RING_BUFFER_ALL_CPUS且非d_buffer_empty - is the ring buffer empty?*@buffer: The ring buffer to testcpu不等于RING_BUFFER_ALL_CPUS且非g_buffer_empty_cpu - is a cpu buffer of a ring buffer empty?*@buffer: The ring buffer*@cpu: The CPU buffer to test则返回:Epoll event masks 按位或EPOLLRDNORM
723  返回:0
调用者
名称描述
trace_poll