Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:03:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__free_pages_ok

Proto:static void __free_pages_ok(struct page *page, unsigned int order)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned intorder
1418  pfn = page_to_pfn(page)
1420  If Not free_pages_prepare(page, order, true) Then Return
1423  migratetype = get_pfnblock_migratetype(page, pfn)
1424  local_irq_save(flags)
1425  __count_vm_events(PGFREE, 1 << order)
1426  free_one_page(page_zone(page), page, pfn, order, migratetype)
1427  local_irq_restore(flags)
Caller
NameDescribe
free_compound_pageHigher-order pages are called "compound pages". They are structured thusly:* The first PAGE_SIZE page is called the "head page" and have PG_head set.* The remaining PAGE_SIZE pages are called "tail pages". PageTail() is encoded
free_the_page