函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Free whole pageblock and set its migration type to MIGRATE_CMA.

函数原型:void __init init_cma_reserved_pageblock(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
1975  i等于pageblock_nr_pages
1976  p等于page
1978  循环
1979  __ClearPageReserved(p)
1980  set_page_count(p, 0)
1981 p先自加, i先自减循环
1983  set_pageblock_migratetype(page, MIGRATE_CMA)
1985  如果Huge pages are a constant size 大于等于Free memory management - zoned buddy allocator.
1986  i等于pageblock_nr_pages
1987  p等于page
1988  循环
1991  p加等于MAX_ORDER_NR_PAGES
1992 i减等于MAX_ORDER_NR_PAGES循环
1993  否则
1994  Turn a non-refcounted page (->_refcount == 0) into refcounted with* a count of one.
1995  __free_pages(page, Huge pages are a constant size )
1998  adjust_managed_page_count(page, pageblock_nr_pages)
调用者
名称描述
cma_activate_area