Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\ring_buffer.c Create Date:2022-07-28 13:42:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ring_buffer_init

Proto:static void ring_buffer_init(struct ring_buffer *rb, long watermark, int flags)

Type:void

Parameter:

TypeParameterName
struct ring_buffer *rb
longwatermark
intflags
306  max_size = perf_data_size(rb)
308  If watermark Then wakeup watermark = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(max_size, watermark)
311  If Not wakeup watermark Then wakeup watermark = max_size / 2
314  If flags & Buffer handling Then can overwrite itself = 0
316  Else can overwrite itself = 1
319  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
321  Initialization list head
322  Process spin lock initialization( & poll crap )
328  If Not nr of data pages Then can write into ring buffer = 1
Caller
NameDescribe
rb_alloc