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:23
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rb_head_page_replace

Proto:static int rb_head_page_replace(struct buffer_page *old, struct buffer_page *new)

Type:int

Parameter:

TypeParameterName
struct buffer_page *old
struct buffer_page *new
1047  unsigned long * ptr = (unsigned long * ) & next
1051  val = ptr & ~RB_FLAG_MASK
1052  val |= RB_PAGE_HEAD
1054  ret = cmpxchg(ptr, val, (unsignedlong) & list of buffer pages )
1056  Return ret == val
Caller
NameDescribe
rb_get_reader_page