函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:33:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__free_pages_ok

函数原型:static void __free_pages_ok(struct page *page, unsigned int order)

返回类型:void

参数:

类型参数名称
struct page *page
unsigned intorder
1418  pfn等于page_to_pfn(page)
1420  如果非free_pages_prepare(page, order, true)则返回
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)
调用者
名称描述
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