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

Name:rb_free_cpu_buffer

Proto:static void rb_free_cpu_buffer(struct ring_buffer_per_cpu *cpu_buffer)

Type:void

Parameter:

TypeParameterName
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  If head Then
1357  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
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)
Caller
NameDescribe
__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.