Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free whole pageblock and set its migration type to MIGRATE_CMA.

Proto:void __init init_cma_reserved_pageblock(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
1975  i = pageblock_nr_pages
1976  p = page
1978  Do
1979  __ClearPageReserved(p)
1980  set_page_count(p, 0)
1981  When ++p, --i cycle
1983  set_pageblock_migratetype(page, MIGRATE_CMA)
1985  If Huge pages are a constant size >= Free memory management - zoned buddy allocator. Then
1986  i = pageblock_nr_pages
1987  p = page
1988  Do
1991  p += MAX_ORDER_NR_PAGES
1992  When i -= MAX_ORDER_NR_PAGES cycle
1993  Else
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)
Caller
NameDescribe
cma_activate_area