Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:53:19
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rb_head_page_set

Proto:static int rb_head_page_set(struct ring_buffer_per_cpu *cpu_buffer, struct buffer_page *head, struct buffer_page *prev, int old_flag, int new_flag)

Type:int

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
struct buffer_page *head
struct buffer_page *prev
intold_flag
intnew_flag
954  unsigned long val = (unsigned long) & list of buffer pages
957  list = list of buffer pages
959  val &= ~RB_FLAG_MASK
961  ret = cmpxchg((unsignedlong * ) & next, val | old_flag, val | new_flag)
965  If (ret & ~RB_FLAG_MASK) != val Then Return PAGE_MOVED is not part of the mask
968  Return ret & RB_FLAG_MASK
Caller
NameDescribe
rb_head_page_set_update
rb_head_page_set_head
rb_head_page_set_normal