函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_free_cpu_buffer

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

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
1348  head等于pages
1351  Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing* this issue out.
1353  _head_page_deactivate - clears head page ptr (for free list)
1355  如果head
1357  删除链表项并重新初始化
1358  Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing* this issue out.
1360  bpage等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(head, structbuffer_page, list)
1361  Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing* this issue out.
1364  kfree(cpu_buffer)
调用者
名称描述
__ring_buffer_alloc__ring_buffer_alloc - allocate a new ring_buffer*@size: the size in bytes per cpu that is needed.*@flags: attributes to set for the ring buffer.* Currently the only flag that is available is the RB_FL_OVERWRITE* flag
ring_buffer_freeg_buffer_free - free a ring buffer.*@buffer: the buffer to free.