函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ring_buffer_has_space

函数原型:static __always_inline bool ring_buffer_has_space(unsigned long head, unsigned long tail, unsigned long data_size, unsigned int size, bool backward)

返回类型:bool

参数:

类型参数名称
unsigned longhead
unsigned longtail
unsigned longdata_size
unsigned intsize
boolbackward
142  如果非backward则返回: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  否则返回: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
调用者
名称描述
__perf_output_begin