Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:55:34
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:g_buffer_empty_cpu - is a cpu buffer of a ring buffer empty?*@buffer: The ring buffer*@cpu: The CPU buffer to test

Proto:bool ring_buffer_empty_cpu(struct ring_buffer *buffer, int cpu)

Type:bool

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
4488  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return true
4491  cpu_buffer = buffers[cpu]
4492  local_irq_save(flags)
4493  dolock = rb_reader_lock(cpu_buffer)
4494  ret = rb_per_cpu_empty(cpu_buffer)
4495  rb_reader_unlock(cpu_buffer, dolock)
4496  local_irq_restore(flags)
4498  Return ret
Caller
NameDescribe
ring_buffer_waitg_buffer_wait - wait for input to the ring buffer*@buffer: buffer to wait on*@cpu: the cpu buffer to wait on*@full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS* If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon
ring_buffer_poll_waitg_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
__find_next_entry
trace_empty