函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_page_entries

函数原型:static inline unsigned long rb_page_entries(struct buffer_page *bpage)

返回类型:unsigned long

参数:

类型参数名称
struct buffer_page *bpage
1486  返回:local_read( & ries on this page )按位与The buffer page counters, write and entries, must be reset* atomically when crossing page boundaries. To synchronize this* update, two counters are inserted into the number. One is* the actual counter for the write position or count on the page.
调用者
名称描述
rb_remove_pages
rb_handle_head_page_handle_head_page - writer hit the head page* Returns: +1 to retry page* 0 to continue* -1 on error
ring_buffer_read_pageg_buffer_read_page - extract a page from the ring buffer*@buffer: buffer to extract from*@data_page: the page to use allocated from ring_buffer_alloc_read_page*@len: amount to extract*@cpu: the cpu of the buffer to extract