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

Name:rb_update_pages

Proto:static void rb_update_pages(struct ring_buffer_per_cpu *cpu_buffer)

Type:void

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
1687  If g buffer pages to update, > 0 to add, < 0 to remove > 0 Then success = rb_insert_pages(cpu_buffer)
1689  Else success = rb_remove_pages(cpu_buffer, - g buffer pages to update, > 0 to add, < 0 to remove )
1693  If success Then nr_pages += g buffer pages to update, > 0 to add, < 0 to remove
Caller
NameDescribe
update_pages_handler
ring_buffer_resizeg_buffer_resize - resize the ring buffer*@buffer: the buffer to resize.*@size: the new size.*@cpu_id: the cpu buffer to resize* Minimum size is 2 * BUF_PAGE_SIZE.* Returns 0 on success and < 0 on failure.