Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:55:37
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:g_buffer_free_read_page - free an allocated read page*@buffer: the buffer the page was allocate for*@cpu: the cpu buffer the page came from*@data: the page to free* Free a page allocated from ring_buffer_alloc_read_page.

Proto:void ring_buffer_free_read_page(struct ring_buffer *buffer, int cpu, void *data)

Type:void

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
void *data
4642  cpu_buffer = buffers[cpu]
4643  bpage = data
4644  page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(bpage)
4648  If page_ref_count(page) > 1 Then Go to out
4651  local_irq_save(flags)
4652  r sched/core.c and kernel_lock.c: ( & lock)
4654  If Not free_page Then
4655  free_page = bpage
4656  bpage = NULL
4659  arch_spin_unlock( & lock)
4660  local_irq_restore(flags)
4662  out :
4663  free_page((unsignedlong)bpage)
Caller
NameDescribe
read_page
tracing_buffers_release
buffer_ref_release
tracing_buffers_splice_read