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

Name:rb_page_entries

Proto:static inline unsigned long rb_page_entries(struct buffer_page *bpage)

Type:unsigned long

Parameter:

TypeParameterName
struct buffer_page *bpage
1486  Return 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.
Caller
NameDescribe
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