函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:g_buffer_nr_pages_dirty - get the number of used pages in the ring buffer*@buffer: The ring_buffer to get the number of pages from*@cpu: The cpu of the ring_buffer to get the number of pages from

函数原型:size_t ring_buffer_nr_dirty_pages(struct ring_buffer *buffer, int cpu)

返回类型:size_t

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
538  read等于local_read( & pages_read)
539  cnt等于local_read( & pages_touched)
541  如果cnt小于read
542  WARN_ON_ONCE(read > cnt + 1)
543  返回:0
546  返回:cntread
调用者
名称描述
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
rb_wakeups