函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_update_pages

函数原型:static void rb_update_pages(struct ring_buffer_per_cpu *cpu_buffer)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
1687  如果g buffer pages to update, > 0 to add, < 0 to remove 大于0则success等于rb_insert_pages(cpu_buffer)
1689  否则success等于rb_remove_pages(cpu_buffer, - g buffer pages to update, > 0 to add, < 0 to remove )
1693  如果successnr_pages加等于g buffer pages to update, > 0 to add, < 0 to remove
调用者
名称描述
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.