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:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ring_buffer_has_space

Proto:static __always_inline bool ring_buffer_has_space(unsigned long head, unsigned long tail, unsigned long data_size, unsigned int size, bool backward)

Type:bool

Parameter:

TypeParameterName
unsigned longhead
unsigned longtail
unsigned longdata_size
unsigned intsize
boolbackward
142  If Not backward Then Return Return space available, 0..size-1. We always leave one free charas a completely full buffer has head == tail, which is the same asempty. (head, tail, data_size) >= size
144  Else Return Return space available, 0..size-1. We always leave one free charas a completely full buffer has head == tail, which is the same asempty. (tail, head, data_size) >= size
Caller
NameDescribe
__perf_output_begin