函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ring_buffer_init

函数原型:static void ring_buffer_init(struct ring_buffer *rb, long watermark, int flags)

返回类型:void

参数:

类型参数名称
struct ring_buffer *rb
longwatermark
intflags
306  max_size等于perf_data_size(rb)
308  如果watermark wakeup watermark 等于两数取小(max_size, watermark)
311  如果非 wakeup watermark wakeup watermark 等于max_size除2
314  如果flags按位与Buffer handling can overwrite itself 等于0
316  否则 can overwrite itself 等于1
319  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
321  初始化链表头
322  spin_lock_init( & poll crap )
328  如果非 nr of data pages can write into ring buffer 等于1
调用者
名称描述
rb_alloc