函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 12:58:44
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rb_head_page_replace

函数原型:static int rb_head_page_replace(struct buffer_page *old, struct buffer_page *new)

返回类型:int

参数:

类型参数名称
struct buffer_page *old
struct buffer_page *new
1047  unsigned long * ptr = (unsigned long * ) & 链表后项
1051  val等于ptr按位与RB_FLAG_MASK的反
1052  val或等于RB_PAGE_HEAD
1054  ret等于cmpxchg(ptr, val, (unsignedlong) & list of buffer pages )
1056  返回:ret恒等于val
调用者
名称描述
rb_get_reader_page