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

Name:rb_allocate_pages

Proto:static int rb_allocate_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned long nr_pages)

Type:int

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
unsigned longnr_pages
1263  LIST_HEAD(pages)
1265  WARN_ON(!nr_pages)
1267  If __rb_allocate_pages(nr_pages, & pages, cpu) Then Return -ENOMEM
1275  pages = next
1276  deletes entry from list
1278  nr_pages = nr_pages
1280  _check_pages - integrity check of buffer pages*@cpu_buffer: CPU buffer with pages to test* As a safety measure we check to make sure the data pages have not* been corrupted.
1282  Return 0
Caller
NameDescribe
rb_allocate_cpu_buffer